Index: import_sch.c =================================================================== --- import_sch.c (revision 34340) +++ import_sch.c (revision 34341) @@ -152,14 +152,18 @@ if (!nonempty) return do_dialog(); + /* build the argument list in a[] */ a = malloc((len+1) * sizeof(char *)); for(n = 0, ci = rnd_conflist_first((rnd_conflist_t *)&conf_import_sch.plugins.import_sch.args); ci != NULL; ci = rnd_conflist_next(ci), n++) a[n] = ci->val.string[0]; + + /* perform a reimport */ rnd_message(RND_MSG_DEBUG, "import_sch2: reimport with %s -> %p\n", imp_name, p); pcb_undo_freeze_serial(); res = p->import(p, IMPORT_ASPECT_NETLIST, a, len); pcb_undo_unfreeze_serial(); pcb_undo_inc_serial(); + free(a); return res; }