setpwnam: fix memory leak
Found with scan-build. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
ac943a662d
commit
31af559e30
|
@ -166,6 +166,7 @@ int setpwnam(struct passwd *pwd, const char *prefix)
|
|||
goto fail;
|
||||
/* finally: success */
|
||||
ulckpwdf();
|
||||
free(linebuf);
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
|
Loading…
Reference in New Issue