]> wimlib.net Git - wimlib/commitdiff
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 7cc7f0f5d07a6eb4c324ef7e451728d26290e82b..9fed454ab6b45d63477e8ee1897820088b031eea 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;