summaryrefslogtreecommitdiff
path: root/regress/lib/libpthread/siginfo
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2003-06-19 00:59:55 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2003-06-19 00:59:55 +0000
commit43222684c972787a737625afab1e090a2c006599 (patch)
tree17075701432f0ccfcff650e01af73c4a73b9c9ad /regress/lib/libpthread/siginfo
parent7cdfa761d7b490a9e2c4ff2b3a103ef00c4969cc (diff)
free memory allocated by asprintf; ok marco
Diffstat (limited to 'regress/lib/libpthread/siginfo')
-rw-r--r--regress/lib/libpthread/siginfo/siginfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/lib/libpthread/siginfo/siginfo.c b/regress/lib/libpthread/siginfo/siginfo.c
index 03429b28c9b..c45ed8ce293 100644
--- a/regress/lib/libpthread/siginfo/siginfo.c
+++ b/regress/lib/libpthread/siginfo/siginfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: siginfo.c,v 1.8 2002/10/27 21:49:45 marc Exp $ */
+/* $OpenBSD: siginfo.c,v 1.9 2003/06/19 00:59:54 pvalchev Exp $ */
/* PUBLIC DOMAIN Oct 2002 <marc@snafu.org> */
/*
@@ -27,6 +27,7 @@ act_handler(int signal, siginfo_t *siginfo, void *context)
"addr %p, code %d, trap %d\n", signal, siginfo, context,
siginfo->si_addr, siginfo->si_code, siginfo->si_trapno);
write(STDOUT_FILENO, str, strlen(str));
+ free(str);
ASSERT(siginfo->si_addr == BOGUS);
ASSERT(siginfo->si_code != SI_USER);
ASSERT(siginfo->si_code > 0 && siginfo->si_code <= NSIGSEGV);