Patch from Scott McKellar to plug a small leak in open-ils.auth
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jan 2008 19:59:04 +0000 (19:59 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jan 2008 19:59:04 +0000 (19:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8553 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_auth.c

index 07e71ad..8c4321d 100644 (file)
@@ -172,6 +172,7 @@ static int oilsAuthVerifyPassword( const osrfMethodContext* ctx,
        char* seed = osrfCacheGetString( "%s%s", OILS_AUTH_CACHE_PRFX, uname ); /**/
 
        if(!seed) {
+               free(realPassword);
                return osrfAppRequestRespondException( ctx->session,
                        ctx->request, "No authentication seed found. "
                        "open-ils.auth.authenticate.init must be called first");