aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-26 14:24:28 -0700
committerMartin Kaiser <wireshark@kaiser.cx>2015-06-27 16:26:04 +0000
commit40f330f28c4997e85ee71fe3ed905423333cf7fb (patch)
tree27ea504421baa96472b7f10bba1f3726d4c4aad6 /ui
parent48f7ce79e272636c407219a7df15f6f0cb0f93d6 (diff)
Free a malloc'ed error message to not leak memory
Change-Id: I59b43e8d4efe8320cf17c6dd086440d3522ef247 Reviewed-on: https://code.wireshark.org/review/9183 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'ui')
-rw-r--r--ui/capture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/capture.c b/ui/capture.c
index 590c33a7b5..8113c67166 100644
--- a/ui/capture.c
+++ b/ui/capture.c
@@ -686,6 +686,8 @@ capture_stat_start(capture_options *capture_opts) {
sc->cache_list = g_list_append(sc->cache_list, sc_item);
}
}
+ } else {
+ g_free(msg); /* XXX: should we display this to the user ? */
}
return sc;
}