diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-09-29 14:05:27 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-09-29 21:05:59 +0000 |
commit | b59cadb313207f3f2d27dc3d0e26568de39437d8 (patch) | |
tree | 3d873a6ee6cb7d1d4cf4027e6c348c6d40cd97c1 /ui/qt/iax2_analysis_dialog.cpp | |
parent | 90d6219efaa517d4b6478fc055cded9c2915d622 (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: Icb5aa5b1a2df8919d8a4e54d88a5d865320bd279
Reviewed-on: https://code.wireshark.org/review/29929
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/iax2_analysis_dialog.cpp')
-rw-r--r-- | ui/qt/iax2_analysis_dialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/iax2_analysis_dialog.cpp b/ui/qt/iax2_analysis_dialog.cpp index 00472f1ef5..d097891bb3 100644 --- a/ui/qt/iax2_analysis_dialog.cpp +++ b/ui/qt/iax2_analysis_dialog.cpp @@ -338,6 +338,8 @@ Iax2AnalysisDialog::Iax2AnalysisDialog(QWidget &parent, CaptureFile &cf) : /* assume the inverse ip/port combination for the reverse direction */ rtpstream_id_copy_pinfo(&(edt.pi),&(rev_id_),TRUE); + epan_dissect_cleanup(&edt); + #ifdef IAX2_RTP_STREAM_CHECK rtpstream_tapinfo_t tapinfo; |