aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMartin Mathieson <martin.mathieson@keysight.com>2020-05-02 17:08:49 +0100
committerGuy Harris <gharris@sonic.net>2020-05-03 19:07:53 +0000
commit0b1e27ec774b65c157dd2f5de387f73a25ae306e (patch)
tree7966e7384f221dddf397131c9c97651917227746 /ui
parent6ba8bd037f46b7dbb0e82ca79ad1d0cfbbe0eda9 (diff)
voip_calls: Fix leak of GString from unistim handling.
/opt/SourceCode/wireshark/ui/voip_calls.c 3786 err V773 The function was exited without releasing the 'g_tmp' pointer. A memory leak is possible. Tested with unistim_call.pcap from SampleCaptures. Bug: 16335 Change-Id: I8518a3e277e8acec15e09ca5f36672b5bdd181fe Reviewed-on: https://code.wireshark.org/review/37028 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <gharris@sonic.net>
Diffstat (limited to 'ui')
-rw-r--r--ui/voip_calls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/voip_calls.c b/ui/voip_calls.c
index e87ab32462..737c1f3983 100644
--- a/ui/voip_calls.c
+++ b/ui/voip_calls.c
@@ -3784,6 +3784,7 @@ unistim_calls_packet(void *tap_offset_ptr, packet_info *pinfo, epan_dissect_t *e
/* free data */
g_free(comment);
+ g_string_free(g_tmp, TRUE);
tapinfo->redraw |= REDRAW_UNISTIM;