Go back to the latest pre-master-47

This commit is contained in:
Brian Taylor 2026-05-18 22:12:14 -07:00
parent a5be217dde
commit 5d391fa745
1 changed files with 1 additions and 13 deletions

View File

@ -48,7 +48,6 @@ void inp_probe(struct card* deck)
int skip_control = 0;
int skip_subckt = 0;
wordlist* probes = NULL, *probeparams = NULL, *wltmp, *allsaves = NULL;
wordlist *next_wl = NULL;
bool haveall = FALSE, havedifferential = FALSE, t = TRUE, havesave = FALSE;
NGHASHPTR instances; /* instance hash table */
int ee = 0; /* serial number for sources */
@ -141,12 +140,7 @@ void inp_probe(struct card* deck)
}
}
/* don't free the wl_word, they belong to the cards */
wltmp = probes;
while (wltmp) {
next_wl = wltmp->wl_next;
tfree(wltmp); // Do not free the wl_word
wltmp = next_wl;
}
tfree(probes);
/* Set up the hash table for all instances (instance name is key, data
is the storage location of the card) */
@ -194,7 +188,6 @@ void inp_probe(struct card* deck)
if (!instname)
continue;
nghash_insert(instances, instname, card);
tfree(instname);
}
if (haveall || probeparams == NULL) {
@ -893,7 +886,6 @@ void inp_probe(struct card* deck)
tmpcard = nghash_find(instances, instname);
if (!tmpcard) {
fprintf(stderr, "Warning: Could not find the instance line for %s,\n .probe %s will be ignored\n", instname, wltmp->wl_word);
tfree(instname);
continue;
}
char* thisline = tmpcard->line;
@ -929,7 +921,6 @@ void inp_probe(struct card* deck)
else if (err == 3) {
fprintf(stderr, "Warning: Number of nodes mismatch,\n .probe %s will be ignored\n", wltmp->wl_word);
}
tfree(instname);
continue;
}
else if (!haveall) {
@ -947,9 +938,6 @@ void inp_probe(struct card* deck)
}
}
if (probeparams) {
wl_free(probeparams);
}
nghash_free(instances, NULL, NULL);
}