diff options
Diffstat (limited to 'TSRM/TSRM.c')
-rw-r--r-- | TSRM/TSRM.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index 87fb25f37c..f483527b38 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -340,7 +340,7 @@ TSRM_API void tsrm_mutex_free( MUTEX_T mutexp ) #ifdef WIN32 CloseHandle(mutexp); #elif defined(PTHREADS) - free(mutexp); + pthread_mutex_destroy(mutexp); #elif defined(NSAPI) crit_terminate(mutexp); #elif defined(PI3WEB) |