git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c252867
)
r16272: Fix memleak.
author
Günther Deschner
<gd@samba.org>
Thu, 15 Jun 2006 21:59:25 +0000
(21:59 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:17:30 +0000
(11:17 -0500)
Guenther
(This used to be commit
afdb1189029e01a132f16fea48624126ec65cd77
)
source3/libads/kerberos.c
patch
|
blob
|
history
diff --git
a/source3/libads/kerberos.c
b/source3/libads/kerberos.c
index 2dfdc31dd56e6fc71405d71223151d25a77c2589..90650e1dce083e453fb7e8c695afd5ec09626888 100644
(file)
--- 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;
}