Skip to content

Commit

Permalink
Fix memory leak in URL scanning code
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Aug 13, 2013
1 parent 6a3a855 commit 95c6790
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ char *extract_urls(const char *to_match)

urls = string_append(urls, match, "\n");

free(match);

p += m.rm_eo;
}
return urls;
Expand Down

0 comments on commit 95c6790

Please sign in to comment.