From c166ffc10d1e334e2633018a4f75bb2c4c022399 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 16 Oct 2007 23:01:23 +0000 Subject: [PATCH] Release our mutex rather than free-ing it, since we want it around to reuse. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9994 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/director.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/python/director.swg b/Lib/python/director.swg index cb14d3afc..176ee3336 100644 --- a/Lib/python/director.swg +++ b/Lib/python/director.swg @@ -354,7 +354,7 @@ namespace Swig { ~Guard() { - PyThread_free_lock(mutex_); + PyThread_release_lock(mutex_); } }; # define SWIG_GUARD(mutex) Guard _guard(mutex)