]> git.sur5r.net Git - openldap/commitdiff
ITS#6005 strings from ber_scanf must be ber_memfree'd
authorHoward Chu <hyc@openldap.org>
Sun, 8 Mar 2009 00:08:09 +0000 (00:08 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 8 Mar 2009 00:08:09 +0000 (00:08 +0000)
clients/tools/ldappasswd.c

index b3a6ad6030a619f495da6f56b372310555b4fa6e..d1638500541abb9439a2997c9a50eec6cc7af813 100644 (file)
@@ -379,7 +379,7 @@ main( int argc, char *argv[] )
                        perror( "ber_scanf" );
                } else {
                        printf(_("New password: %s\n"), s);
-                       free( s );
+                       ber_memfree( s );
                }
 
                ber_free( ber, 1 );