projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d0a880
)
nspawn: fix memleak in argument parsing
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 17 Jul 2019 08:09:18 +0000
(10:09 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Wed, 17 Jul 2019 09:35:04 +0000
(11:35 +0200)
Coverity CID#1402297.
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index
117a637
..
848e100
100644
(file)
--- a/
src/nspawn/nspawn.c
+++ b/
src/nspawn/nspawn.c
@@
-1282,7
+1282,7
@@
static int parse_argv(int argc, char *argv[]) {
case ARG_RLIMIT: {
const char *eq;
-
char *name
;
+
_cleanup_free_ char *name = NULL
;
int rl;
if (streq(optarg, "help")) {