aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stats_tree.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2018-05-09 22:37:41 +0200
committerPeter Wu <peter@lekensteyn.nl>2018-05-14 13:44:23 +0000
commit10306f9a32ee4ca65283110ac286bb1ba9ef2a01 (patch)
tree05e4b1ac1b9387f00007ad583571d2a57566c0e7 /epan/stats_tree.c
parentbb81e1807b2a5b67905cfa1594dbbb535fe8b37e (diff)
Free g_array_free-related memory leaks
g_array_free(a, FALSE) returns "a->data". Callers that do not handle this will leak memory. Convert other users to use the return value instead of direct access to "a->data". Change-Id: I0a29864e8106c0bf09e9573ef29e4474179c4171 Reviewed-on: https://code.wireshark.org/review/27438 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/stats_tree.c')
-rw-r--r--epan/stats_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/stats_tree.c b/epan/stats_tree.c
index 51db3b2fb9..be90f8e2ef 100644
--- a/epan/stats_tree.c
+++ b/epan/stats_tree.c
@@ -1306,7 +1306,7 @@ WS_DLL_PUBLIC void stats_tree_format_node_as_str(const stat_node *node,
stats_tree_format_node_as_str(g_array_index(Children,stat_node*,count), s, format_type,
indent, full_path, maxnamelen, sort_column, sort_descending);
}
- g_array_free(Children,FALSE);
+ g_array_free(Children, TRUE);
}
g_free(full_path);