Browse code

free(threadpool->queue) in thrmgr_destroy, thanks to Edwin

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@2392 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2006/10/16 06:30:14
Showing 1 changed files
... ...
@@ -119,6 +119,7 @@ void thrmgr_destroy(threadpool_t *threadpool)
119 119
 	pthread_mutex_destroy(&(threadpool->pool_mutex));
120 120
 	pthread_cond_destroy(&(threadpool->pool_cond));
121 121
 	pthread_attr_destroy(&(threadpool->pool_attr));
122
+	free(threadpool->queue);
122 123
 	free(threadpool);
123 124
 	return;
124 125
 }