summaryrefslogtreecommitdiff
path: root/uricut.c
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2019-04-20 06:57:03 -0500
committerepoch <epoch@hacking.allowed.org>2019-04-20 06:57:03 -0500
commitcf90e381246b2543f123848e56fce58186b052d5 (patch)
treeeae788445eea105c5d26b7fdda5bd54e78334e8f /uricut.c
parent6a78fa292800adba07094bd5e06b0bb8a4fb8305 (diff)
downloaduritools-cf90e381246b2543f123848e56fce58186b052d5.tar.gz
uritools-cf90e381246b2543f123848e56fce58186b052d5.zip
added a free before a return. thx npa.
Diffstat (limited to 'uricut.c')
-rw-r--r--uricut.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}