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][python] Fix sigsegv when a printer fails to return a value and string_print is set.


Tom Tromey <tromey@redhat.com> writes:

>>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
>
> I think the patch is fine, but one nit...
>
> Phil> +  /* If we previously used THEVALUE, free it as we have already
> Phil> +     printed the contents to the ui_file STB.  */
> Phil> +  if (thevalue)
> Phil> +    xfree (thevalue);
>
> Since the function is using cleanups, just make a cleanup where this is
> allocated.

I removed the hunk entirely, as we discussed on irc.

So committed.

Thanks

Phil


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