diff options
author | Balint Reczey <balint@balintreczey.hu> | 2022-11-10 16:24:06 +0100 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2022-11-10 16:24:06 +0100 |
commit | 3987cc788047570ecf10707dfc8958780d85c73c (patch) | |
tree | 109724175f07436696f51b14b5abbd3f4d704d6d /lib/getdef.c | |
parent | 8ead740677d19e48690d4f144ab090b83d47059f (diff) | |
download | shadow-upstream.tar.gz |
New upstream version 4.13+dfsg1upstream/4.13+dfsg1upstream
Diffstat (limited to 'lib/getdef.c')
-rw-r--r-- | lib/getdef.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/getdef.c b/lib/getdef.c index 2e6022fa..dcd1fe72 100644 --- a/lib/getdef.c +++ b/lib/getdef.c @@ -388,10 +388,7 @@ int putdef_str (const char *name, const char *value) return -1; } - if (NULL != d->value) { - free (d->value); - } - + free (d->value); d->value = cp; return 0; } |