summaryrefslogtreecommitdiff
path: root/TSRM/TSRM.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-26 15:33:42 +0000
committerSascha Schumann <sas@php.net>1999-11-26 15:33:42 +0000
commit2f10b7ede8817ae462dd072bcceb8c1bd6e1d7db (patch)
tree1ea1a2037cb1051fca998cb2de22d9a739c63257 /TSRM/TSRM.c
parent957b079232166a642faa3074e1f0faea5f154a75 (diff)
downloadphp-git-2f10b7ede8817ae462dd072bcceb8c1bd6e1d7db.tar.gz
Close a resource leak.
Diffstat (limited to 'TSRM/TSRM.c')
-rw-r--r--TSRM/TSRM.c2
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)