diff options
author | zoff99 <zoff@zoff.cc> | 2020-04-05 09:25:50 +0200 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-04-05 09:32:23 +0000 |
commit | bcbc37437086b4814a451382a4342f1b6a75cbd1 (patch) | |
tree | 4a674dcf6c9f90feb4d9df4f890c97e047aee93a /toxav/audio.c | |
parent | f0ae0511c21b43d7531885a2be8fc0710e1732f0 (diff) |
Fix 2 memory leaks in ToxAV.
Diffstat (limited to 'toxav/audio.c')
-rw-r--r-- | toxav/audio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toxav/audio.c b/toxav/audio.c index da1ea11f..cf9097d7 100644 --- a/toxav/audio.c +++ b/toxav/audio.c | |||
@@ -204,6 +204,10 @@ void ac_iterate(ACSession *ac) | |||
204 | int ac_queue_message(Mono_Time *mono_time, void *acp, struct RTPMessage *msg) | 204 | int ac_queue_message(Mono_Time *mono_time, void *acp, struct RTPMessage *msg) |
205 | { | 205 | { |
206 | if (!acp || !msg) { | 206 | if (!acp || !msg) { |
207 | if (msg) { | ||
208 | free(msg); | ||
209 | } | ||
210 | |||
207 | return -1; | 211 | return -1; |
208 | } | 212 | } |
209 | 213 | ||