* CtdlTryPassword(): fix leak
authorWilfried Göesgens <willi@citadel.org>
Fri, 21 May 2010 22:38:09 +0000 (22:38 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 21 May 2010 22:38:09 +0000 (22:38 +0000)
citadel/user_ops.c

index 294767c68e5cd1412adf69994912a049b2211e3c..95ec1e207a9ec8818e9f233ea13da7ee8981ce6b 100644 (file)
@@ -976,6 +976,7 @@ int CtdlTryPassword(const char *password, long len)
                strproc(pw);
                strproc(CC->user.password);
                code = strcasecmp(CC->user.password, pw);
+               free (pw);
        }
 
        if (!code) {