]> git.ipfire.org Git - thirdparty/git.git/blobdiff - add-patch.c
Merge branch 'rj/add-p-typo-reaction'
[thirdparty/git.git] / add-patch.c
index 85c4770572c0c42ca113a3c98182ae2a23de7d2e..2252895c28044fc2e4b6ff4a2396732c57ad8940 100644 (file)
@@ -1645,6 +1645,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;