Fix the compiled out code too

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.
This commit is contained in:
Maxim Biro 2021-12-30 23:11:10 -05:00
parent dbcfc8265e
commit ce4b01df94
No known key found for this signature in database
GPG Key ID: AB3AD9896472BFA4

View File

@ -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;
}