This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/1202: Minor memory leak in free_environ() (gdb/environ.c)


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]