summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-12-12 20:56:19 -0500
committerirungentoo <irungentoo@gmail.com>2014-12-12 20:56:19 -0500
commit7d4489b8724edd929189c7b7f2a9a32b28429c48 (patch)
tree272464ae18abae55515692b0ddabf062bd7c08ad
parent4e1e3150d3a6529a47ffb9c2ceb925f143ffea96 (diff)
parent05cc7df031c523378ed1b2db0c1258ce57262b07 (diff)
Merge branch 'mem-leak-fix' of https://github.com/nurupo/InsertProjectNameHere
-rw-r--r--toxav/codec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxav/codec.c b/toxav/codec.c
index 2b892be7..2c15cb4d 100644
--- a/toxav/codec.c
+++ b/toxav/codec.c
@@ -482,6 +482,7 @@ CSSession *cs_new(const ToxAvCSettings *cs_self, const ToxAvCSettings *cs_peer,
482 482
483 if (create_recursive_mutex(cs->queue_mutex) != 0) { 483 if (create_recursive_mutex(cs->queue_mutex) != 0) {
484 LOGGER_WARNING("Failed to create recursive mutex!"); 484 LOGGER_WARNING("Failed to create recursive mutex!");
485 free(cs);
485 return NULL; 486 return NULL;
486 } 487 }
487 488
@@ -673,4 +674,4 @@ void queue_message(RTPSession *session, RTPMessage *msg)
673end: 674end:
674 rtp_free_msg(NULL, msg); 675 rtp_free_msg(NULL, msg);
675 } 676 }
676} \ No newline at end of file 677}