projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not check `NULL` to call g_free(): g_free() accepts `NULL`
[babeltrace.git]
/
src
/
plugins
/
text
/
dmesg
/
dmesg.c
diff --git
a/src/plugins/text/dmesg/dmesg.c
b/src/plugins/text/dmesg/dmesg.c
index 7243bbb5d777dfdb28c416118f0b9a37ae6df297..49fba13f80221c9522aa033024017df7932beb93 100644
(file)
--- a/
src/plugins/text/dmesg/dmesg.c
+++ b/
src/plugins/text/dmesg/dmesg.c
@@
-296,9
+296,7
@@
error:
ret = -1;
end:
- if (basename) {
- g_free(basename);
- }
+ g_free(basename);
return ret;
}
This page took
0.023247 seconds
and
4
git commands to generate.