From: Michal MalĂ˝ Date: Wed, 9 Jul 2014 10:21:28 +0000 (+0200) Subject: Destory mutex in error path X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=eabe6fc43043453cb8daee4ae73e4d71ea3ff4f4;p=LFSBench.git Destory mutex in error path --- diff --git a/appwindow.c b/appwindow.c index 8e73371..9e1ff86 100644 --- a/appwindow.c +++ b/appwindow.c @@ -97,6 +97,7 @@ int create_window() Xdisp = XOpenDisplay(NULL); if (Xdisp == NULL) { + pthread_mutex_destroy(&draw_mutex); fprintf(stderr, "CRITICAL: Unable to open X display!\n"); return -1; }