git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test/mem: disable ASan when accessing unallocated memory
[dpdk.git]
/
lib
/
eal
/
common
/
eal_common_trace_ctf.c
diff --git
a/lib/eal/common/eal_common_trace_ctf.c
b/lib/eal/common/eal_common_trace_ctf.c
index
33e419a
..
3b83bcd
100644
(file)
--- a/
lib/eal/common/eal_common_trace_ctf.c
+++ b/
lib/eal/common/eal_common_trace_ctf.c
@@
-52,8
+52,7
@@
meta_copy(char **meta, int *offset, char *str, int rc)
return rc;
free_str:
- if (str)
- free(str);
+ free(str);
return -ENOMEM;
}
@@
-291,8
+290,7
@@
trace_metadata_create(void)
return 0;
fail:
- if (meta)
- free(meta);
+ free(meta);
return -EBADF;
}