mirror of
https://github.com/libimobiledevice/libplist.git
synced 2026-05-17 20:30:34 +00:00
libcnary: Fix leak on error in node_copy_deep()
This commit is contained in:
@@ -312,6 +312,7 @@ node_t node_copy_deep(node_t node, copy_func_t copy_func)
|
||||
return NULL;
|
||||
}
|
||||
if (node_attach(copy, cc) < 0) {
|
||||
node_destroy(cc);
|
||||
node_destroy(copy);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user