]> git.ipfire.org Git - thirdparty/git.git/blobdiff - add-patch.c
Start the 2.46 cycle
[thirdparty/git.git] / add-patch.c
index a06dd189854a7a8e680ce76b8995296f2e773b98..0997d4af7398a2fe51e702d3ba4b24e7794d0047 100644 (file)
@@ -1646,6 +1646,7 @@ soft_increment:
                                err(s, _("No hunk matches the given pattern"));
                                break;
                        }
+                       regfree(&regex);
                        hunk_index = i;
                } else if (s->answer.buf[0] == 's') {
                        size_t splittable_into = hunk->splittable_into;