Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2015-07-17 20:42:31 +0300
committerSoumith Chintala <soumith@gmail.com>2015-07-17 20:42:31 +0300
commit7ff6d1de3fa45e8c50fd943b1d0ba58acb75f467 (patch)
tree7e3485ddeb32c46eb2336efa09defa20cd8f516e
parent150504d32d04f3548bbe850d6a382bad4a0b9f9d (diff)
parent66bb0b3043e40aab16a844c0844e1f36d1e70b96 (diff)
Merge pull request #20 from adamlerer/THCondition_free
free THCondition object
-rw-r--r--lib/THThread.c1
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);
}
}
}