aboutsummaryrefslogtreecommitdiffstats
path: root/ui/tap-sctp-analysis.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-03-10 23:25:30 +0100
committerAnders Broman <a.broman58@gmail.com>2018-03-15 06:30:03 +0000
commitf96abc7fc01a8101de5257c76dde847199049fc6 (patch)
treec968c3a0b619877013cfeff06ababec0019b715c /ui/tap-sctp-analysis.c
parentd6161a656b35e604d95c489431e14d4bba99b072 (diff)
tap-sctp: remove leak of tmp_info (found by clang).
Change-Id: If2eff49d5cf2ec4c0df5e9cafc1c69383502d8ae Reviewed-on: https://code.wireshark.org/review/26433 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/tap-sctp-analysis.c')
-rw-r--r--ui/tap-sctp-analysis.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/tap-sctp-analysis.c b/ui/tap-sctp-analysis.c
index bd70de8638..7103ec553d 100644
--- a/ui/tap-sctp-analysis.c
+++ b/ui/tap-sctp-analysis.c
@@ -709,6 +709,9 @@ packet(void *tapdata _U_, packet_info *pinfo, epan_dissect_t *edt _U_, const voi
error->info_text = "INFOS";
info->error_info_list = g_list_append(info->error_info_list, error);
}
+ } else {
+ free_address_wmem(NULL, &tmp_info.src);
+ free_address_wmem(NULL, &tmp_info.dst);
}
} /* endif (!info) */
else
@@ -1105,8 +1108,11 @@ packet(void *tapdata _U_, packet_info *pinfo, epan_dissect_t *edt _U_, const voi
}
}
-
}
+
+ free_address_wmem(NULL, &tmp_info.src);
+ free_address_wmem(NULL, &tmp_info.dst);
+
if (datachunk || forwardchunk)
{
if (info->direction == 1)