summaryrefslogtreecommitdiff
path: root/condvar.c
diff options
context:
space:
mode:
Diffstat (limited to 'condvar.c')
-rw-r--r--condvar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/condvar.c b/condvar.c
index a92fdfb..afc6eea 100644
--- a/condvar.c
+++ b/condvar.c
@@ -414,6 +414,8 @@ FAIL2:
FAIL1:
(void) sem_destroy (&(cv->sema));
+ free(cv);
+ cv = NULL;
FAIL0:
DONE: