public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11236] New: memory leak with struct using_direct
@ 2010-01-29 19:56 tromey at redhat dot com
2010-01-29 19:57 ` [Bug c++/11236] " swagiaal at redhat dot com
2010-03-15 20:44 ` tromey at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2010-01-29 19:56 UTC (permalink / raw)
To: gdb-prs
>From what I can tell, struct using_direct objects are allocated with
xmalloc but then never freed.
They should probably be allocated on the objfile's obstack.
--
Summary: memory leak with struct using_direct
Product: gdb
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at sourceware dot org
ReportedBy: tromey at redhat dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11236
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/11236] memory leak with struct using_direct
2010-01-29 19:56 [Bug c++/11236] New: memory leak with struct using_direct tromey at redhat dot com
@ 2010-01-29 19:57 ` swagiaal at redhat dot com
2010-03-15 20:44 ` tromey at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: swagiaal at redhat dot com @ 2010-01-29 19:57 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware dot|swagiaal at redhat dot com
|org |
Status|UNCONFIRMED |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=11236
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/11236] memory leak with struct using_direct
2010-01-29 19:56 [Bug c++/11236] New: memory leak with struct using_direct tromey at redhat dot com
2010-01-29 19:57 ` [Bug c++/11236] " swagiaal at redhat dot com
@ 2010-03-15 20:44 ` tromey at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2010-03-15 20:44 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-03-10 16:23 -------
Subject: Bug 11236
CVSROOT: /cvs/src
Module name: src
Changes by: swagiaal@sourceware.org 2010-03-10 16:22:31
Modified files:
gdb : ChangeLog cp-namespace.c cp-support.h
dwarf2read.c
Log message:
2010-03-09 Sami Wagiaalla <swagiaal@redhat.com>
PR C++/11236:
* cp-namespace.c (cp_add_using): Deleted.
(cp_add_using_directive): Use obstack allocations.
Merged the function cp_add_using into this one.
Added 'struct obstack *' argument.
(cp_scan_for_anonymous_namespaces): Updated.
* cp-support.h: Updated.
* dwarf2read.c (read_import_statement): Updated.
(read_namespace): Updated.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11460&r2=1.11461
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-namespace.c.diff?cvsroot=src&r1=1.36&r2=1.37
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-support.h.diff?cvsroot=src&r1=1.34&r2=1.35
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.360&r2=1.361
------- Additional Comments From tromey at redhat dot com 2010-03-15 20:44 -------
Fix was committed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|7.1 |7.2
http://sourceware.org/bugzilla/show_bug.cgi?id=11236
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-15 20:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-29 19:56 [Bug c++/11236] New: memory leak with struct using_direct tromey at redhat dot com
2010-01-29 19:57 ` [Bug c++/11236] " swagiaal at redhat dot com
2010-03-15 20:44 ` tromey at redhat 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).