X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fupdate_image.c;h=b973c21d8a896ac1d4b28ba570f9bf197c144fb3;hb=c3648a1bf94a11ee6eff22cb728f0efe3f4500e9;hp=facdfff202ed4f702cad097a10155690ad2d404e;hpb=fa36a299ac2c41ee8ae588829fe7eeba08904629;p=wimlib diff --git a/src/update_image.c b/src/update_image.c index facdfff2..b973c21d 100644 --- a/src/update_image.c +++ b/src/update_image.c @@ -49,6 +49,12 @@ # include "config.h" #endif +#include +#include +#include + +#include "wimlib/alloca.h" +#include "wimlib/assert.h" #include "wimlib/capture.h" #include "wimlib/dentry.h" #include "wimlib/encoding.h" @@ -63,14 +69,6 @@ #include "wimlib/progress.h" #include "wimlib/xml.h" -#include -#include -#include - -#ifdef HAVE_ALLOCA_H -# include -#endif - /* Saved specification of a "primitive" update operation that was performed. */ struct update_primitive { enum { @@ -534,7 +532,7 @@ handle_conflict(struct wim_dentry *branch, struct wim_dentry *existing, return ret; } } - free_dentry(branch); + free_dentry_tree(branch, j->lookup_table); return 0; } else if (add_flags & WIMLIB_ADD_FLAG_NO_REPLACE) { /* Can't replace nondirectory file */