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
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index 3e532ad60067c6db4a454eb2d4d6b3ab890a6d7e..9ea891e92f980d037a47328a83ddeb79c4ec8c26 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-636,9
+636,7
@@
end:
*/
void lttng_destroy_handle(struct lttng_handle *handle)
{
*/
void lttng_destroy_handle(struct lttng_handle *handle)
{
- if (handle) {
- free(handle);
- }
+ free(handle);
}
/*
}
/*
This page took
0.024285 seconds
and
4
git commands to generate.