cmd_parser: Fix invalid free()
authorTomas Mlcoch <tmlcoch@redhat.com>
Fri, 17 Oct 2014 09:55:53 +0000 (11:55 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Fri, 17 Oct 2014 09:55:53 +0000 (11:55 +0200)
src/cmd_parser.c

index db900d6..1ee83fc 100644 (file)
@@ -501,5 +501,5 @@ free_options(struct CmdOptions *options)
     cr_slist_free_full(options->l_update_md_paths, g_free);
     cr_slist_free_full(options->distro_cpeids, g_free);
     cr_slist_free_full(options->distro_values, g_free);
-    cr_slist_free_full(options->oldpackagedirs_paths, g_free);
+    g_slist_free(options->oldpackagedirs_paths);
 }