[hackers] [ubase] Remember to free the agetline() buffer || sin

From: <git_AT_suckless.org>
Date: Thu, 05 Jun 2014 18:00:43 +0200

commit abbb8fffc74cd1ea5ee3bf2f8176bfbf3bb1f5e3
Author: sin <sin_AT_2f30.org>
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
_AT_@ -109,5 +109,6 @@ pw_copy(int ffd, int tfd, const struct passwd *newpw)
                 free(p);
         }
         fflush(to);
+ free(buf);
         return 0;
 }
Received on Thu Jun 05 2014 - 18:00:43 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 05 2014 - 18:12:12 CEST