diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-09-29 16:52:22 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-09-29 23:53:59 +0000 |
commit | 9be5c2fae3dc433a6e88bb254100d01794418eb2 (patch) | |
tree | 2c79e947aca47e0854f32384c31a64e6ee4ba9c8 /ui/qt/rtp_analysis_dialog.cpp | |
parent | b59cadb313207f3f2d27dc3d0e26568de39437d8 (diff) |
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 <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/rtp_analysis_dialog.cpp')
-rw-r--r-- | ui/qt/rtp_analysis_dialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |