Remove memory leak.

This commit is contained in:
Holger Vogt 2026-03-20 16:51:24 +01:00
parent af67662a3f
commit 2d3e032a3f
1 changed files with 4 additions and 6 deletions

View File

@ -117,15 +117,13 @@ ENHtranslate_poly(
l1->nextcard = l2; l1->nextcard = l2;
d->nextcard = l1; d->nextcard = l1;
/* PN 2004: Add original linenumber to ease the debug process /* Add original linenumber to ease the debug process
* for malfromned netlist * for malformed netlist */
*/
l1->linenum = d->linenum; l1->linenum = d->linenum;
l2->linenum = d->linenum; l2->linenum = d->linenum;
l1->linesource = copy("internal"); l1->linesource = "internal";
l2->linesource = copy("internal"); l2->linesource = "internal";
/* Create the translated cards */ /* Create the translated cards */
d->error = two2three_translate(d->line, &(l1->line), &(l2->line)); d->error = two2three_translate(d->line, &(l1->line), &(l2->line));