提交 7b60997f 编写于 作者: W Wenji Huang 提交者: Steven Rostedt

tracing: Simplify memory recycle of trace_define_field

Discard freeing field->type since it is not necessary.
Reviewed-by: NLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: NWenji Huang <wenji.huang@oracle.com>
LKML-Reference: <1266997226-6833-5-git-send-email-wenji.huang@oracle.com>
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 c85f3a91
...@@ -60,10 +60,8 @@ int trace_define_field(struct ftrace_event_call *call, const char *type, ...@@ -60,10 +60,8 @@ int trace_define_field(struct ftrace_event_call *call, const char *type,
return 0; return 0;
err: err:
if (field) { if (field)
kfree(field->name); kfree(field->name);
kfree(field->type);
}
kfree(field); kfree(field);
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册