summaryrefslogtreecommitdiff
path: root/lib/getdef.c
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2022-11-10 16:24:06 +0100
committerBalint Reczey <balint@balintreczey.hu>2022-11-10 16:24:06 +0100
commit3987cc788047570ecf10707dfc8958780d85c73c (patch)
tree109724175f07436696f51b14b5abbd3f4d704d6d /lib/getdef.c
parent8ead740677d19e48690d4f144ab090b83d47059f (diff)
downloadshadow-upstream.tar.gz
New upstream version 4.13+dfsg1upstream/4.13+dfsg1upstream
Diffstat (limited to 'lib/getdef.c')
-rw-r--r--lib/getdef.c5
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;
}