diff options
-rw-r--r-- | difftool/compare_dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/difftool/compare_dir.c b/difftool/compare_dir.c index 9ef2ba5..99a0a37 100644 --- a/difftool/compare_dir.c +++ b/difftool/compare_dir.c @@ -32,6 +32,7 @@ int compare_dir_entries(sqfsdiff_t *sd, tree_node_t *old, tree_node_t *new) S_ISREG(old_it->mode)) { if (extract_files(sd, old_it->data.file, NULL, path)) { + free(path); return -1; } } @@ -58,6 +59,7 @@ int compare_dir_entries(sqfsdiff_t *sd, tree_node_t *old, tree_node_t *new) S_ISREG(new_it->mode)) { if (extract_files(sd, NULL, new_it->data.file, path)) { + free(path); return -1; } } |