From 57d05a18082d3d06a94dff1d83898237b7d28540 Mon Sep 17 00:00:00 2001 From: Andrey Alekseenko Date: Fri, 21 Feb 2020 22:06:16 -0500 Subject: [PATCH] Remove double free The function parser_submit_data is only called from parser_feed_char_data_body, which frees the buffer pointer anyway. --- src/shared/rtsp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/shared/rtsp.c b/src/shared/rtsp.c index 9ecf5a5..1df569d 100644 --- a/src/shared/rtsp.c +++ b/src/shared/rtsp.c @@ -2169,7 +2169,6 @@ static int parser_submit_data(struct rtsp *bus, uint8_t *p) p, dec->data_size); if (r < 0) { - free(p); return r; }