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] |
"Keith" == Keith Seitz<keiths@redhat.com> writes:Keith> + | OPERATOR ptype Keith> + { char *name; Keith> + long length; Keith> + struct ui_file *buf = mem_fileopen (); Keith> + Keith> + c_print_type ($2, NULL, buf, -1, 0); Keith> + name = ui_file_xstrdup (buf,&length); Keith> + ui_file_delete (buf); Keith> + $$ = operator_stoken (name);
This leaks 'name', you need a free after the call to operator_stoken.
This is ok with the above change. Thanks.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |