diff options
author | Soumith Chintala <soumith@gmail.com> | 2015-07-17 20:42:31 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2015-07-17 20:42:31 +0300 |
commit | 7ff6d1de3fa45e8c50fd943b1d0ba58acb75f467 (patch) | |
tree | 7e3485ddeb32c46eb2336efa09defa20cd8f516e | |
parent | 150504d32d04f3548bbe850d6a382bad4a0b9f9d (diff) | |
parent | 66bb0b3043e40aab16a844c0844e1f36d1e70b96 (diff) |
Merge pull request #20 from adamlerer/THCondition_free
free THCondition object
-rw-r--r-- | lib/THThread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/THThread.c b/lib/THThread.c index 4e503fb..1a680c6 100644 --- a/lib/THThread.c +++ b/lib/THThread.c @@ -234,6 +234,7 @@ void THCondition_free(THCondition *self) if(self) { if(THAtomicDecrementRef(&self->refcount)) { pthread_cond_destroy(&self->id); + free(self); } } } |