From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 7 Dec 2021 20:05:37 +0000 (+0000) Subject: Another memory leak. X-Git-Tag: 4.1-rc1~24^2~363^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eea4e4c0c7b3ef0c740062d781bb8dc4f61693c;p=thirdparty%2Fshairport-sync.git Another memory leak. --- diff --git a/rtsp.c b/rtsp.c index 6f46c3f5..af7066f9 100644 --- a/rtsp.c +++ b/rtsp.c @@ -2529,6 +2529,10 @@ void handle_teardown_2(rtsp_conn_info *conn, __attribute__((unused)) rtsp_messag free(conn->dacp_active_remote); conn->dacp_active_remote = NULL; } + if (conn->ap2_timing_peer_list_message) { + free(conn->ap2_timing_peer_list_message); + conn->ap2_timing_peer_list_message = NULL; + } debug(1,"Bogus exit for valgrind."); exit(EXIT_SUCCESS); // }