From 1f00e07c0a4d9b287eb98b0d72fc13514c1bb7dd Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 16 Feb 2016 02:46:23 -0500 Subject: [PATCH] Fixes to cond_var --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index 405f3173..e4504196 100644 --- a/gc.c +++ b/gc.c @@ -581,7 +581,7 @@ size_t gc_sweep(gc_heap *h, size_t *sum_freed_ptr) #if GC_DEBUG_VERBOSE fprintf(stderr, "pthread_cond_destroy from sweep\n"); #endif - if (pthread_cond_destroy(&(((cond_var)p)->lock)) != 0) { + if (pthread_cond_destroy(&(((cond_var)p)->cond)) != 0) { fprintf(stderr, "Error destroying condition variable\n"); exit(1); }