This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1202: Minor memory leak in free_environ() (gdb/environ.c)
- From: adenton at yahoo dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 5 May 2003 16:17:48 -0000
- Subject: gdb/1202: Minor memory leak in free_environ() (gdb/environ.c)
- Reply-to: adenton at yahoo dot com
>Number: 1202
>Category: gdb
>Synopsis: Minor memory leak in free_environ() (gdb/environ.c)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 05 16:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Adam Denton
>Release: 5.3
>Organization:
>Environment:
all
>Description:
Just noticed, the routine free_environ() in gdb/environ.c
fails to xfree the char** vector.
Add a line
xfree (e->vector);
before the xfree of E.
>How-To-Repeat:
>Fix:
In file gdb/environ.c, in function free_environ():
Add a line
xfree (e->vector);
before the xfree of E.
>Release-Note:
>Audit-Trail:
>Unformatted: