Commit 7b60997f authored by Wenji Huang's avatar Wenji Huang Committed by Steven Rostedt

tracing: Simplify memory recycle of trace_define_field

Discard freeing field->type since it is not necessary.
Reviewed-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarWenji Huang <wenji.huang@oracle.com>
LKML-Reference: <1266997226-6833-5-git-send-email-wenji.huang@oracle.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent c85f3a91
......@@ -60,10 +60,8 @@ int trace_define_field(struct ftrace_event_call *call, const char *type,
return 0;
err:
if (field) {
if (field)
kfree(field->name);
kfree(field->type);
}
kfree(field);
return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment