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 /src/gpasswd.c | |
parent | 8ead740677d19e48690d4f144ab090b83d47059f (diff) | |
download | shadow-3987cc788047570ecf10707dfc8958780d85c73c.tar.gz |
New upstream version 4.13+dfsg1upstream/4.13+dfsg1upstream
Diffstat (limited to 'src/gpasswd.c')
-rw-r--r-- | src/gpasswd.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gpasswd.c b/src/gpasswd.c index 85fb1d17..5983f787 100644 --- a/src/gpasswd.c +++ b/src/gpasswd.c @@ -1186,17 +1186,11 @@ int main (int argc, char **argv) #ifdef SHADOWGRP if (is_shadowgrp) { - if (sgent.sg_adm) { - xfree(sgent.sg_adm); - } - if (sgent.sg_mem) { - xfree(sgent.sg_mem); - } + free(sgent.sg_adm); + free(sgent.sg_mem); } #endif - if (grent.gr_mem) { - xfree(grent.gr_mem); - } + free(grent.gr_mem); exit (E_SUCCESS); } |