Fix pb-discover segfaults caused by list corruption.
[petitboot] / discover / syslinux-parser.c
index be7b94aa5d5b2ccb625ebea1fc23212fda8784c2..c611ac92b794e878a87d4793d9557df2243abe9e 100644 (file)
@@ -408,6 +408,7 @@ static void syslinux_finalize(struct conf_context *conf)
                conf_strip_str(opt->description);
 
                discover_context_add_boot_option(dc, d_opt);
+               d_opt = NULL;
                continue;
 
 fail: