aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2018-05-26 16:40:02 +0200
committerAnders Broman <a.broman58@gmail.com>2018-05-28 08:19:02 +0000
commit2ef7e8cf42f43fbdcf23b3bd7eff671703b91f61 (patch)
tree9970c4c4d8a93118e5b2ed539569b97d7a09deb7
parentd90aa2139553bf31743f12c0a79de96089363acb (diff)
SCTPAllAssocsDialog: fix memleak of "sctp_assocs"
"fillTable()" overwrites "sctp_assocs" with an external address. Change-Id: I415d424f16a2306b1b79fde7b5f836458da14b16 Reviewed-on: https://code.wireshark.org/review/27833 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--ui/qt/sctp_all_assocs_dialog.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/qt/sctp_all_assocs_dialog.cpp b/ui/qt/sctp_all_assocs_dialog.cpp
index 39d6d7dfd8..15bd635f1f 100644
--- a/ui/qt/sctp_all_assocs_dialog.cpp
+++ b/ui/qt/sctp_all_assocs_dialog.cpp
@@ -33,7 +33,6 @@ SCTPAllAssocsDialog::SCTPAllAssocsDialog(QWidget *parent, capture_file *cf) :
| Qt::WindowMaximizeButtonHint
| Qt::WindowCloseButtonHint;
this->setWindowFlags(flags);
- sctp_assocs = (sctp_allassocs_info_t *)g_malloc(sizeof(sctp_allassocs_info_t));
fillTable();
}