wimlib_iterate_dir_tree(): free d_full_path after using
authorEric Biggers <ebiggers3@gmail.com>
Mon, 19 Oct 2015 00:39:33 +0000 (19:39 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 19 Oct 2015 00:49:16 +0000 (19:49 -0500)
src/iterate_dir.c

index 7cc7f0f..9fed454 100644 (file)
@@ -219,6 +219,8 @@ do_iterate_dir_tree(WIMStruct *wim,
                }
        }
 out_free_wimlib_dentry:
+       FREE(dentry->d_full_path);
+       dentry->d_full_path = NULL;
        free_wimlib_dentry(wdentry);
 out:
        return ret;