From: Jérémie Galarneau Date: Thu, 26 Jan 2017 01:19:49 +0000 (-0500) Subject: Fix: bt_config_init_from_args has no ownership of cfg X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=97faf54fa14020962e969941677b3c8bb25e4108;p=deliverable%2Fbabeltrace.git Fix: bt_config_init_from_args has no ownership of cfg Signed-off-by: Jérémie Galarneau --- diff --git a/converter/babeltrace-cfg.c b/converter/babeltrace-cfg.c index 8b3eebcfa..5811f4447 100644 --- a/converter/babeltrace-cfg.c +++ b/converter/babeltrace-cfg.c @@ -2829,15 +2829,12 @@ int bt_config_init_from_args(struct bt_config *cfg, int argc, const char *argv[] break; } case OPT_HELP: - BT_PUT(cfg); print_usage(stdout); goto end; case OPT_HELP_LEGACY: - BT_PUT(cfg); print_legacy_usage(stdout); goto end; case OPT_VERSION: - BT_PUT(cfg); print_version(); goto end; case OPT_LIST: