Fix memory leak reported by Brian Taylor.

This commit is contained in:
Giles Atkinson 2022-10-10 13:48:06 +01:00 committed by Holger Vogt
parent 9801d06795
commit 01c4a5dff2
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ static struct bridge *find_bridge(Evt_Node_Info_t *event_node,
if (direction == MIF_IN) {
setup = ".model auto_adc adc_bridge("
"in_low = '%g/2' in_high = '%g/2')";
format = copy("auto_adc%d [ %s ] [ %s ] auto_adc");
format = "auto_adc%d [ %s ] [ %s ] auto_adc";
} else if (direction == MIF_OUT) { // MIF_OUT
setup = ".model auto_dac dac_bridge("
"out_low = 0 out_high = %g)";