From a7fe1151ce7700db90949f26dda00630e4fb36c5 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 21 Jul 2017 17:02:35 +0200 Subject: [PATCH] Fix duplicate free There are calls of free_buf in all other code branches. Signed-off-by: Stefan Weil --- asearch.c | 1 - 1 file changed, 1 deletion(-) diff --git a/asearch.c b/asearch.c index 5a57e11..d3b19cf 100644 --- a/asearch.c +++ b/asearch.c @@ -234,7 +234,6 @@ register unsigned D; { if(FILENAMEONLY && (NEW_FILE || !POST_FILTER)) { num_of_matched++; - free_buf(text, buffer); if (agrep_finalfp != NULL) fprintf(agrep_finalfp, "%s\n", CurrentFileName); else {