From 9be5c2fae3dc433a6e88bb254100d01794418eb2 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 29 Sep 2018 16:52:22 -0700 Subject: Clean up the epan_dissect_t in the normal code path. We initialized it, but only cleaned it up in an error code path, not in the regular code path. That could leak memory. Change-Id: Ic6689163ca58990fa5091b23e7ab2e0292eed76c Reviewed-on: https://code.wireshark.org/review/29930 Reviewed-by: Guy Harris --- ui/qt/rtp_analysis_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/qt/rtp_analysis_dialog.cpp') diff --git a/ui/qt/rtp_analysis_dialog.cpp b/ui/qt/rtp_analysis_dialog.cpp index 86bd9ca4fd..58050211b4 100644 --- a/ui/qt/rtp_analysis_dialog.cpp +++ b/ui/qt/rtp_analysis_dialog.cpp @@ -1599,6 +1599,8 @@ void RtpAnalysisDialog::findStreams() } fwd_statinfo_.id.ssrc = fvalue_get_uinteger(&((field_info *)gp->pdata[0])->value); + epan_dissect_cleanup(&edt); + /* Register the tap listener */ memset(&tapinfo_, 0, sizeof(rtpstream_tapinfo_t)); tapinfo_.tap_data = this; -- cgit v1.2.3