This is the mail archive of the gdb-patches@sourceware.org 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] |
Hi teawater, > 2008-06-21 Hui Zhu <teawater@gmail.com> > * gdb/c-exp.y: Fix memory leak of function parse_number Instead of adding calls to free, I looks like this string is actually completely local, so how about replacing the call to malloc with a call to alloca, and then get rid of all calls to free instead? -- Joel
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |