summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-06-15 21:59:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:30 -0500
commitd4ad11ccd8dd6780e048849784b33fd55d5a04b6 (patch)
tree018391d2d64b4821e5676a9f557d7cc15c7ffece /source3
parentc2528679d8a5da90c027f21c4970a211c5175da9 (diff)
downloadsamba-d4ad11ccd8dd6780e048849784b33fd55d5a04b6.tar.gz
samba-d4ad11ccd8dd6780e048849784b33fd55d5a04b6.tar.bz2
samba-d4ad11ccd8dd6780e048849784b33fd55d5a04b6.zip
r16272: Fix memleak.
Guenther (This used to be commit afdb1189029e01a132f16fea48624126ec65cd77)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/kerberos.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index 2dfdc31dd5..90650e1dce 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -195,6 +195,7 @@ int ads_kinit_password(ADS_STRUCT *ads)
}
if (!ads->auth.password) {
+ SAFE_FREE(s);
return KRB5_LIBOS_CANTREADPWD;
}
@@ -205,7 +206,7 @@ int ads_kinit_password(ADS_STRUCT *ads)
DEBUG(0,("kerberos_kinit_password %s failed: %s\n",
s, error_message(ret)));
}
- free(s);
+ SAFE_FREE(s);
return ret;
}