From: Petr Machata Date: Mon, 16 Feb 2009 16:45:40 +0000 (+0100) Subject: Fix free of literal string X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04cab6b47caf593e9ce8f5332f4813dcab069200;p=thirdparty%2Felfutils.git Fix free of literal string --- diff --git a/src/dwarflint.c b/src/dwarflint.c index 38cb117e3..09da37fd7 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -2488,7 +2488,8 @@ relocate_one (struct relocation_data *reloc, GElf_Rela *rela, ": relocation references section %s, but %s was expected.\n", wh1, wh2); free (wh2); - free (wh1); + if (id != sec_invalid) + free (wh1); } } }