From d9b6a28307cbea7656a1eee3b2a6c6b5ca7fce1d Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 7 Dec 2021 20:29:00 +0000 Subject: [PATCH] Add a bogus exit for AP1 to make it easier to evaluate valgrind results. --- rtsp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtsp.c b/rtsp.c index af7066f9..4396a363 100644 --- a/rtsp.c +++ b/rtsp.c @@ -2533,7 +2533,7 @@ void handle_teardown_2(rtsp_conn_info *conn, __attribute__((unused)) rtsp_messag free(conn->ap2_timing_peer_list_message); conn->ap2_timing_peer_list_message = NULL; } - debug(1,"Bogus exit for valgrind."); + debug(1,"Bogus exit for valgrind -- remember to comment it out!."); exit(EXIT_SUCCESS); // } #endif @@ -2559,6 +2559,8 @@ void handle_teardown(rtsp_conn_info *conn, __attribute__((unused)) rtsp_message conn->connection_number); resp->respcode = 451; } + debug(1,"Bogus exit for valgrind -- remember to comment it out!."); + exit(EXIT_SUCCESS); } void handle_flush(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) {