From 3e3fa81c3465bc329d448aac78de8e556d9d513f Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Sun, 26 Apr 2009 21:36:33 -0700 Subject: memory leak fix in auth/login.c Signed-off-by: Anand V. Avati --- auth/login/src/login.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/auth/login/src/login.c b/auth/login/src/login.c index f89daa568..9b12365fc 100644 --- a/auth/login/src/login.c +++ b/auth/login/src/login.c @@ -71,6 +71,8 @@ auth_result_t gf_auth (dict_t *input_params, dict_t *config_params) 0)) { asprintf (&searchstr, "auth.login.%s.password", username); passwd_data = dict_get (config_params, searchstr); + FREE (searchstr); + if (!passwd_data) { gf_log ("auth/login", GF_LOG_DEBUG, -- cgit