repo: uritools action: commit revision: path_from: revision_from: cf90e381246b2543f123848e56fce58186b052d5: path_to: revision_to:
commit cf90e381246b2543f123848e56fce58186b052d5 Author: epochDate: Sat Apr 20 06:57:03 2019 -0500 added a free before a return. thx npa. diff --git a/uricut.c b/uricut.c
--- a/uricut.c
+++ b/uricut.c
@@ -110,6 +110,7 @@ int main(int argc,char *argv[]) {
line=malloc(size+1);
malloced=1;
if(!fgets(line,size,stdin)) {
+ free(line);
return 0;
}
}
-----END OF PAGE-----