On Thu, Mar 3, 2022 at 3:10 AM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > > On Wed, 2 Mar 2022 06:51:30 +0200 > "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@xxxxxxxxx> wrote: > > > @@ -453,6 +460,8 @@ struct tracecmd_compression *tracecmd_compress_alloc(const char *name, const cha > > void tracecmd_compress_destroy(struct tracecmd_compression *handle) > > { > > tracecmd_compress_reset(handle); > > + if (handle->proto->free_context) > > + handle->proto->free_context(handle->context); > > free(handle); > > } > > > > I segfaulted here with: > > # trace-cmd restore -c -o /tmp/head > > Need to test handle is NULL or not. > > Perhaps even just exit normally at the start? > > if (!handle) > return; > ops :) I'll send v2 of the patch set with this fix. Thanks Steven! > Which makes it not crash. > > -- Steve -- Tzvetomir (Ceco) Stoyanov VMware Open Source Technology Center