commit abbb8fffc74cd1ea5ee3bf2f8176bfbf3bb1f5e3 Author: sin <[email protected]> Date: Thu Jun 5 16:56:15 2014 +0100
Remember to free the agetline() buffer
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;
}
