aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrischka <grischka>2008-09-15 02:07:55 +0200
committergrischka <grischka>2008-09-15 02:07:55 +0200
commit7bebf1f59a983255e6c029995583f360f30f1a04 (patch)
tree48a069fe2c13ec9c836df9a4141e570756340218
parent7f51aa13e7918f99ee40ba3dc328dbeb0ef980c7 (diff)
downloadtinycc-7bebf1f59a983255e6c029995583f360f30f1a04.tar.gz
tinycc-7bebf1f59a983255e6c029995583f360f30f1a04.tar.bz2
was hash, not link
-rw-r--r--tcc.c2
1 files changed, 1 insertions, 1 deletions
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);