diff options
-rw-r--r-- | toxav/codec.c | 3 |
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) | |||
673 | end: | 674 | end: |
674 | rtp_free_msg(NULL, msg); | 675 | rtp_free_msg(NULL, msg); |
675 | } | 676 | } |
676 | } \ No newline at end of file | 677 | } |