Free orphaned branch dentry
authorEric Biggers <ebiggers3@gmail.com>
Sun, 17 Mar 2013 02:18:22 +0000 (21:18 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 17 Mar 2013 02:18:22 +0000 (21:18 -0500)
src/add_image.c

index 133540a..28ece74 100644 (file)
@@ -1365,6 +1365,7 @@ static int do_overlay(struct wim_dentry *target, struct wim_dentry *branch)
                        return WIMLIB_ERR_INVALID_OVERLAY;
                }
        }
                        return WIMLIB_ERR_INVALID_OVERLAY;
                }
        }
+       free_dentry(branch);
        return 0;
 
 }
        return 0;
 
 }