summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2014-12-12 20:41:27 -0500
committerMaxim Biro <nurupo.contributions@gmail.com>2014-12-12 20:41:27 -0500
commit05cc7df031c523378ed1b2db0c1258ce57262b07 (patch)
treeea6d707c185fc20896f951180106b7fab75941de
parent39cc14cceaae74ac5c7e7c1d513eddb745e399c4 (diff)
Fixed a memory leak
-rw-r--r--toxav/codec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxav/codec.c b/toxav/codec.c
index a1aa2869..eede83b4 100644
--- a/toxav/codec.c
+++ b/toxav/codec.c
@@ -480,6 +480,7 @@ CSSession *cs_new(const ToxAvCSettings *cs_self, const ToxAvCSettings *cs_peer,
480 480
481 if (create_recursive_mutex(cs->queue_mutex) != 0) { 481 if (create_recursive_mutex(cs->queue_mutex) != 0) {
482 LOGGER_WARNING("Failed to create recursive mutex!"); 482 LOGGER_WARNING("Failed to create recursive mutex!");
483 free(cs);
483 return NULL; 484 return NULL;
484 } 485 }
485 486
@@ -667,4 +668,4 @@ void queue_message(RTPSession *session, RTPMessage *msg)
667end: 668end:
668 rtp_free_msg(NULL, msg); 669 rtp_free_msg(NULL, msg);
669 } 670 }
670} \ No newline at end of file 671}