projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cppcheck: don't check NULL pointer before freeing them
[lttng-tools.git]
/
src
/
bin
/
lttng
/
conf.c
diff --git
a/src/bin/lttng/conf.c
b/src/bin/lttng/conf.c
index 995407d03d4d4ba6863ee991c6da927df06e8db8..c1bfcfd45b8d87eacfae6d3be878033121ee85cc 100644
(file)
--- a/
src/bin/lttng/conf.c
+++ b/
src/bin/lttng/conf.c
@@
-65,9
+65,7
@@
static FILE *open_config(char *path, const char *mode)
}
error:
- if (file_path) {
- free(file_path);
- }
+ free(file_path);
return fp;
}
This page took
0.02463 seconds
and
4
git commands to generate.