diff options
author | Raghavendra G <raghavendra@zresearch.com> | 2009-04-26 21:36:33 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-30 17:07:20 +0530 |
commit | 3e3fa81c3465bc329d448aac78de8e556d9d513f (patch) | |
tree | 03d8e3b65c0d1493eafe672469dade649165884c /auth | |
parent | f827d1536635c53dbee27ade459f1e207c1115e8 (diff) |
memory leak fix in auth/login.c
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/login/src/login.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/auth/login/src/login.c b/auth/login/src/login.c index f89daa5683b..9b12365fcf3 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, |