git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git]
/
tools
/
lib
/
traceevent
/
parse-filter.c
diff --git
a/tools/lib/traceevent/parse-filter.c
b/tools/lib/traceevent/parse-filter.c
index f3cbf86e51acf6e46ce70423e76b767798248754..20eed719542e5fcb9388d33cb93635db11c30f5e 100644
(file)
--- a/
tools/lib/traceevent/parse-filter.c
+++ b/
tools/lib/traceevent/parse-filter.c
@@
-1228,8
+1228,10
@@
filter_event(struct tep_event_filter *filter, struct tep_event *event,
}
filter_type = add_filter_type(filter, event->id);
- if (filter_type == NULL)
+ if (filter_type == NULL) {
+ free_arg(arg);
return TEP_ERRNO__MEM_ALLOC_FAILED;
+ }
if (filter_type->filter)
free_arg(filter_type->filter);