diff options
-rw-r--r-- | regress/lib/libpthread/pthread_kill/pthread_kill.c | 3 | ||||
-rw-r--r-- | regress/lib/libpthread/siginfo/siginfo.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/regress/lib/libpthread/pthread_kill/pthread_kill.c b/regress/lib/libpthread/pthread_kill/pthread_kill.c index b0457a2dfb1..56d4b288294 100644 --- a/regress/lib/libpthread/pthread_kill/pthread_kill.c +++ b/regress/lib/libpthread/pthread_kill/pthread_kill.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_kill.c,v 1.2 2002/10/23 22:30:04 marc Exp $ */ +/* $OpenBSD: pthread_kill.c,v 1.3 2003/06/19 00:59:54 pvalchev Exp $ */ /* PUBLIC DOMAIN Oct 2002 <marc@snafu.org> */ /* @@ -25,6 +25,7 @@ act_handler(int signal, siginfo_t *siginfo, void *context) asprintf(&str, "act_handler: signal %d, siginfo %p, context %p\n", signal, siginfo, context); write(STDOUT_FILENO, str, strlen(str)); + free(str); } void * 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); |