From 7bebf1f59a983255e6c029995583f360f30f1a04 Mon Sep 17 00:00:00 2001 From: grischka Date: Mon, 15 Sep 2008 02:07:55 +0200 Subject: [PATCH] was hash, not link --- tcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcc.c b/tcc.c index 62062e1..4560b3f 100644 --- a/tcc.c +++ b/tcc.c @@ -1286,7 +1286,7 @@ static void free_section(Section *s) { if (s->link && (s->link->sh_flags & SHF_PRIVATE)) free_section(s->link); - if (s->hash && (s->link->sh_flags & SHF_PRIVATE)) + if (s->hash && (s->hash->sh_flags & SHF_PRIVATE)) s->hash->link = NULL, free_section(s->hash); tcc_free(s->data); tcc_free(s);