Fix: bt_config_init_from_args has no ownership of cfg
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 26 Jan 2017 01:19:49 +0000 (20:19 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:09 +0000 (14:09 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
converter/babeltrace-cfg.c

index 8b3eebcfa262a2922982d34d969f8fb342e08095..5811f4447d06ab955853196d903717ea91224442 100644 (file)
@@ -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:
This page took 0.02663 seconds and 4 git commands to generate.