]> granicus.if.org Git - apache/commitdiff
Fix commit 1465115.
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 7 Jun 2013 04:41:45 +0000 (04:41 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 7 Jun 2013 04:41:45 +0000 (04:41 +0000)
truncpw was allocated from a pool and not via malloc

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490507 13f79535-47bb-0310-9956-ffa450edef68

support/passwd_common.c

index 92a40a8e04afdf5b52846ae57d6296e2e101a949..2d438eef961f7133a457bb4840c6624177bebfa4 100644 (file)
@@ -238,7 +238,6 @@ int mkhash(struct passwd_ctx *ctx)
                                 "characters by CRYPT algorithm." NL);
             }
             memset(truncpw, '\0', strlen(pw));
-            free(truncpw);
         }
         break;
 #endif /* CRYPT_ALGO_SUPPORTED */