vendor/libgit2/src/xdiff/xmerge.c in rugged-0.24.0b13 vs vendor/libgit2/src/xdiff/xmerge.c in rugged-0.24.0b14

- old
+ new

@@ -644,9 +644,11 @@ return -1; } if (xdl_change_compact(&xe2.xdf1, &xe2.xdf2, xpp->flags) < 0 || xdl_change_compact(&xe2.xdf2, &xe2.xdf1, xpp->flags) < 0 || xdl_build_script(&xe2, &xscr2) < 0) { + xdl_free_script(xscr1); + xdl_free_env(&xe1); xdl_free_env(&xe2); return -1; } status = 0; if (!xscr1) {