Bug 47170 - [cppcheck][PATCH] found resource leaks in gcc/intl/localealias.c
Summary: [cppcheck][PATCH] found resource leaks in gcc/intl/localealias.c
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: cppcheck
  Show dependency treegraph
 
Reported: 2011-01-04 16:20 UTC by Martin Ettl
Modified: 2020-01-21 14:41 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
proposed patch to fix the issues (333 bytes, patch)
2011-01-04 16:20 UTC, Martin Ettl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ettl 2011-01-04 16:20:10 UTC
Created attachment 22900 [details]
proposed patch to fix the issues

during a check of gcc's sources with the static code analysis tool cppcheck
(http://sourceforge.net/projects/cppcheck/) the tool discoverd resource leaks 
in file gcc/intl/localealias.c . Please refer the attached patch
that fixes the issue.

Best regards from the cppcheck team

Ettl Martin
Comment 1 jsm-csl@polyomino.org.uk 2011-01-04 17:39:49 UTC
On Tue, 4 Jan 2011, ettl.martin at gmx dot de wrote:

> during a check of gcc's sources with the static code analysis tool cppcheck
> (http://sourceforge.net/projects/cppcheck/) the tool discoverd resource leaks 
> in file gcc/intl/localealias.c . Please refer the attached patch
> that fixes the issue.

Please see intl/README and send your patch to the gettext maintainers if 
the problem is still present in the version of libintl in current upstream 
gettext.  GCC's copy hasn't been updated for several years.