Skip to content

Commit

Permalink
Fix the compiled out code too
Browse files Browse the repository at this point in the history
Has the same double-unlock issue as the previous commit.

It also looks like rtp_free_msg() is gone and free() should be used
instead.
  • Loading branch information
nurupo committed Jan 12, 2022
1 parent dbcfc82 commit ce4b01d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toxav/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ void ac_iterate(ACSession *ac)
cs->last_packet_sampling_rate = rc;
} else {
LOGGER_WARNING(ac->log, "Failed to load packet values!");
rtp_free_msg(msg);
free(msg);
pthread_mutex_lock(ac->queue_mutex);
continue;
}

Expand Down

0 comments on commit ce4b01d

Please sign in to comment.