]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Another memory leak.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 7 Dec 2021 20:05:37 +0000 (20:05 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 7 Dec 2021 20:05:37 +0000 (20:05 +0000)
rtsp.c

diff --git a/rtsp.c b/rtsp.c
index 6f46c3f53e2f119fa8483387744e0e0a615598c8..af7066f9bf892c48f50f6d113b0a851314b6be6c 100644 (file)
--- 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); // 
 }