[ expat-Bugs-2680730 ] Memory leak: outName
"SourceForge.net" <[email protected]> Tue, 10 Mar 2009 23:58:34 +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 (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
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?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=2680730&group_id=10127