summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@zresearch.com>2009-04-26 21:36:33 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-30 17:07:20 +0530
commit3e3fa81c3465bc329d448aac78de8e556d9d513f (patch)
tree03d8e3b65c0d1493eafe672469dade649165884c /auth
parentf827d1536635c53dbee27ade459f1e207c1115e8 (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.c2
1 files changed, 2 insertions, 0 deletions
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,