memory leak fix in auth/login.c

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
This commit is contained in:
Raghavendra G 2009-04-26 21:36:33 -07:00 committed by Anand V. Avati
parent f827d15366
commit 3e3fa81c34

View File

@ -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,