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]

Re: [patch] command_line_input, memory leak


>
> msnyder@sonic.net writes:
>> malloced memory may be returned by readline/history_expand even if the
>> return value is zero.
>
> If I'm reading right, history_expand *always* stores something in the
> pointer referred to by its last argument, if it's non-zero.  So this
> looks good to me.

Thanks, committed.



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