diff options
Diffstat (limited to 'tools/idevicebackup2.c')
-rw-r--r-- | tools/idevicebackup2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index 010e51d..84b8a61 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -1204,10 +1204,12 @@ static void mb2_copy_directory_by_path(const char *src, const char *dst) if (srcpath && dstpath) { /* copy file */ mb2_copy_file_by_path(srcpath, dstpath); + } + if (srcpath) free(srcpath); + if (dstpath) free(dstpath); - } } closedir(cur_dir); } |