public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug boehm-gc/42304]  New: found a resource leak
@ 2009-12-05 21:01 ettl dot martin at gmx dot de
  2009-12-05 21:02 ` [Bug boehm-gc/42304] " ettl dot martin at gmx dot de
  2009-12-07 11:09 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: ettl dot martin at gmx dot de @ 2009-12-05 21:01 UTC (permalink / raw)
  To: gcc-bugs

Hi,

during check of the current trunk with the static code analysis tool cppcheck
(https://sourceforge.net/projects/cppcheck/) i discovered a resource leak.
Please see the attached patch that fixes the issue.

Best regards

Ettl Martin


Index: os_dep.c
===================================================================
--- os_dep.c    (Revision 155013)
+++ os_dep.c    (Arbeitskopie)
@@ -1165,6 +1165,7 @@
       } 
       GC_add_roots_inner(O32_BASE(seg), O32_BASE(seg)+O32_SIZE(seg), FALSE);
     }
+       fclose(myexefile);
 }

 # else /* !OS2 */


-- 
           Summary: found a resource leak
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: boehm-gc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ettl dot martin at gmx dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42304


^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <bug-42304-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-10-03 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-05 21:01 [Bug boehm-gc/42304] New: found a resource leak ettl dot martin at gmx dot de
2009-12-05 21:02 ` [Bug boehm-gc/42304] " ettl dot martin at gmx dot de
2009-12-07 11:09 ` rguenth at gcc dot gnu dot org
     [not found] <bug-42304-4@http.gcc.gnu.org/bugzilla/>
2011-10-03 13:12 ` nightstrike at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).