From 3a00735c24d867ce33870e4fba1a496ad5dace5c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 11 Mar 2011 12:29:27 +1100 Subject: [PATCH] Fix locking. Patch by --- stream.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/stream.c b/stream.c index 714e54f..2fc7cad 100644 --- a/stream.c +++ b/stream.c @@ -1007,7 +1007,6 @@ static void *compthread(void *data) int waited = 0, ret = 0; /* Make sure this thread doesn't already exist */ - lock_mutex(&cthread[i].mutex); free(data); cti = &cthread[i]; @@ -1117,7 +1116,6 @@ static void clear_buffer(rzip_control *control, struct stream_info *sinfo, int s /* Make sure this thread doesn't already exist */ lock_mutex(&cthread[i].mutex); - unlock_mutex(&cthread[i].mutex); cthread[i].sinfo = sinfo; cthread[i].streamno = streamno;