From 9eea4e4c0c7b3ef0c740062d781bb8dc4f61693c Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 7 Dec 2021 20:05:37 +0000 Subject: [PATCH] Another memory leak. --- rtsp.c | 4 ++++ 1 file changed, 4 insertions(+) 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); // }