[ expat-Bugs-2680730 ] Memory leak: outName
"SourceForge.net" <[email protected]> Tue, 10 Mar 2009 23:59:51 +0000
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2680730, was opened at 2009-03-10 19:58
Message generated for change (Comment added) made by boogachamp
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=2680730&group_id=10127
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Duplicate
>Priority: 1
Private: No
Submitted By: Bill Egert (boogachamp)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory leak: outName
Initial Comment:
Using cppcheck 1.30 against expat 2.0.1 yeilds:
cppcheck -j2 -a -s -q .
[./xmlwf/xmlwf.c:857]: (all) Memory leak: outName
.
.
.
if (outputDir) {
if (outputType == 'm')
metaEndDocument(parser);
fclose(fp);
if (!result)
tremove(outName);
free(outName);
}
XML_ParserFree(parser);
}
return 0;
}
shouldn't outName be freed regardless of outputDir's value?
----------------------------------------------------------------------
>Comment By: Bill Egert (boogachamp)
Date: 2009-03-10 19:59
Message:
don't know how I submitted this twice...sorry.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=2680730&group_id=10127