From abbb8fffc74cd1ea5ee3bf2f8176bfbf3bb1f5e3 Mon Sep 17 00:00:00 2001 From: sin Date: Thu, 5 Jun 2014 16:56:15 +0100 Subject: [PATCH] Remember to free the agetline() buffer --- util/passwd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/passwd.c b/util/passwd.c index 4782d55..d65038e 100644 --- a/util/passwd.c +++ b/util/passwd.c @@ -109,5 +109,6 @@ pw_copy(int ffd, int tfd, const struct passwd *newpw) free(p); } fflush(to); + free(buf); return 0; }