Skip to content

Commit

Permalink
Fix duplicate free
Browse files Browse the repository at this point in the history
There are calls of free_buf in all other code branches.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jul 21, 2017
1 parent fb47dac commit a7fe115
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion asearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a7fe115

Please sign in to comment.