From cf90e381246b2543f123848e56fce58186b052d5 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 20 Apr 2019 06:57:03 -0500 Subject: added a free before a return. thx npa. --- uricut.c | 1 + 1 file changed, 1 insertion(+) (limited to 'uricut.c') diff --git a/uricut.c b/uricut.c index 3c0359c..cf143c0 100644 --- 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; } } -- cgit v1.2.3