Skip to content

Commit

Permalink
Fix memory leak thanks to @zhrun
Browse files Browse the repository at this point in the history
  • Loading branch information
plashchynski committed Aug 13, 2017
1 parent 69767e5 commit 3dda94d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ static void rmspace(char *str)
buff[j] = '\0';

strcpy(str, buff);
free(buff);
}

static char *tolow(char *str)
Expand Down

0 comments on commit 3dda94d

Please sign in to comment.