diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/pwd_grp/pwd_grp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c index 77151606a..ab6f8f003 100644 --- a/libc/pwd_grp/pwd_grp.c +++ b/libc/pwd_grp/pwd_grp.c @@ -729,6 +729,8 @@ struct spwd *sgetspent(const char *string) } *sp; struct spwd *result; + free(sp); + sp = __uc_malloc(sizeof(*sp)); sgetspent_r(string, &sp->spwd, sp->line_buff, sizeof(sp->line_buff), &result); return result; } |