mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-15 00:34:05 +09:00
fix small memory leak (from valgrind)
This commit is contained in:
@@ -762,7 +762,13 @@ raop_rtp_remote_control_id(raop_rtp_t *raop_rtp, const char *dacp_id, const char
|
||||
|
||||
/* Set dacp stuff in thread instead */
|
||||
MUTEX_LOCK(raop_rtp->run_mutex);
|
||||
if (raop_rtp->dacp_id) {
|
||||
free(raop_rtp->dacp_id);
|
||||
}
|
||||
raop_rtp->dacp_id = strdup(dacp_id);
|
||||
if (raop_rtp->active_remote_header) {
|
||||
free(raop_rtp->active_remote_header);
|
||||
}
|
||||
raop_rtp->active_remote_header = strdup(active_remote_header);
|
||||
MUTEX_UNLOCK(raop_rtp->run_mutex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user