setpwnam: fix memory leak

Found with scan-build.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2016-04-03 17:39:41 +01:00
parent ac943a662d
commit 31af559e30
No known key found for this signature in database
GPG Key ID: A9553245FDE9B739
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ int setpwnam(struct passwd *pwd, const char *prefix)
goto fail;
/* finally: success */
ulckpwdf();
free(linebuf);
return 0;
fail: