From a5be217ddeb32d79750192771205c5d0051b2c98 Mon Sep 17 00:00:00 2001 From: Brian Taylor Date: Mon, 18 May 2026 22:06:40 -0700 Subject: [PATCH] Revert "Fix memory leaks for paranoia_parallel." This reverts commit cf825fd80a6b3308abd7c0f9b32fdcf5d6565593. --- src/frontend/inpc_probe.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/inpc_probe.c b/src/frontend/inpc_probe.c index ddd1e4630..5a7a91f54 100644 --- a/src/frontend/inpc_probe.c +++ b/src/frontend/inpc_probe.c @@ -142,7 +142,7 @@ void inp_probe(struct card* deck) } /* don't free the wl_word, they belong to the cards */ wltmp = probes; - while (wltmp) { // Fix memory leak probe-i-dev.cir + while (wltmp) { next_wl = wltmp->wl_next; tfree(wltmp); // Do not free the wl_word wltmp = next_wl; @@ -194,7 +194,7 @@ void inp_probe(struct card* deck) if (!instname) continue; nghash_insert(instances, instname, card); - tfree(instname); // Fix memory leak probe-i-dev.cir + tfree(instname); } if (haveall || probeparams == NULL) { @@ -893,7 +893,7 @@ 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); // Fix memory leak probe-i-dev.cir + tfree(instname); continue; } char* thisline = tmpcard->line; @@ -929,7 +929,7 @@ 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); // Fix memory leak probe-i-dev.cir + tfree(instname); continue; } else if (!haveall) { @@ -948,7 +948,7 @@ void inp_probe(struct card* deck) } if (probeparams) { - wl_free(probeparams); // Fix memory leak probe-i-dev.cir + wl_free(probeparams); } nghash_free(instances, NULL, NULL); }