X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=diffcore-pickaxe.c;h=ea03b9107eb2e85dd4a4c5ad93ac08dfe7e1c9f0;hb=cc4e48fc1eafdb9bec037f10c22708a26fd25ef6;hp=84195e47aa0a0e2fbeeb8a56d255ff5c6f42efe7;hpb=2a1be3f8c41a4eefa8842d01d246ef8111245414;p=git.git diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c index 84195e47a..ea03b9107 100644 --- a/diffcore-pickaxe.c +++ b/diffcore-pickaxe.c @@ -269,9 +269,8 @@ static void diffcore_pickaxe_count(struct diff_options *o) diff_free_filepair(p); } - if (opts & DIFF_PICKAXE_REGEX) { + if (opts & DIFF_PICKAXE_REGEX) regfree(®ex); - } free(q->queue); *q = outq; @@ -282,7 +281,7 @@ void diffcore_pickaxe(struct diff_options *o) { /* Might want to warn when both S and G are on; I don't care... */ if (o->pickaxe_opts & DIFF_PICKAXE_KIND_G) - return diffcore_pickaxe_grep(o); + diffcore_pickaxe_grep(o); else - return diffcore_pickaxe_count(o); + diffcore_pickaxe_count(o); }