Fix: param-validation: remove memory leaks
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 21 Oct 2019 21:09:02 +0000 (17:09 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 22 Oct 2019 22:00:36 +0000 (18:00 -0400)
commit8839434ec07524e32c8940d31e3083cf29d3074a
treed9867b813c8b88d770877de85e07dccb798d259e
parent502332367236f0cc3bf05dc3c2c34ca48f3e2a2f
Fix: param-validation: remove memory leaks

The GArray allocated in bt_param_validation_validate is never freed, fix
that.  Furthermore, there's a spurious call to
g_ptr_array_new_with_free_func that shouldn't be there, probably the
result of a bad merge or bad edit, causing another leak.  Remove that
one.

Change-Id: I89afeaa7e6ee67b6536daa42dc2c6d74ec79ae0c
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2233
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/plugins/common/param-validation/param-validation.c
This page took 0.024213 seconds and 4 git commands to generate.