]> wimlib.net Git - wimlib/blobdiff - src/add_image.c
Free orphaned branch dentry
[wimlib] / src / add_image.c
index 133540aa838766de74ba60d3cac3711a909ca1f0..28ece7424720a3922887504590d4506d37b6b7dd 100644 (file)
@@ -1365,6 +1365,7 @@ static int do_overlay(struct wim_dentry *target, struct wim_dentry *branch)
                        return WIMLIB_ERR_INVALID_OVERLAY;
                }
        }
+       free_dentry(branch);
        return 0;
 
 }