summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-11 16:56:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-11 16:56:40 +0000
commit2a1e136586b4f812bfe45d423df040c53e71b86f (patch)
treeb511045459d066493408925b8d8354eb986530a2 /lib
parent9924b4c102b37384a5ecdb8dd2ea0b44f406d4bd (diff)
plug a memory leak; found by parfait, ok djm
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/apps/speed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libssl/src/apps/speed.c b/lib/libssl/src/apps/speed.c
index af077b54a86..5e9437766fe 100644
--- a/lib/libssl/src/apps/speed.c
+++ b/lib/libssl/src/apps/speed.c
@@ -2775,6 +2775,7 @@ static int do_multi(int multi)
close(fd[1]);
mr=1;
usertime=0;
+ free(fds);
return 0;
}
printf("Forked child %d\n",n);
@@ -2924,6 +2925,7 @@ static int do_multi(int multi)
fprintf(stderr,"Unknown type '%s' from child %d\n",buf,n);
}
}
+ free(fds);
return 1;
}
#endif