diff --git a/lib/event/app.c b/lib/event/app.c index e34a5a536..72ff9859b 100644 --- a/lib/event/app.c +++ b/lib/event/app.c @@ -440,6 +440,7 @@ app_setup_trace(struct spdk_app_opts *opts) if (error_found) { SPDK_ERRLOG("invalid tpoint mask %s\n", opts->tpoint_group_mask); + free(tp_g_str); return -1; } else { SPDK_NOTICELOG("Tracepoint Group Mask %s specified.\n", opts->tpoint_group_mask);