git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66fb0ce
)
kdc: Free the resource which is not used anymore
author
Santosh Kumar Pradhan
<spradhan@redhat.com>
Fri, 21 Feb 2014 04:13:47 +0000
(09:43 +0530)
committer
Andreas Schneider
<asn@cryptomilk.org>
Fri, 21 Feb 2014 14:59:28 +0000
(15:59 +0100)
In samba_kdc_firstkey() routine, krb5_get_default_realm() allocates
memory for "realm" but never used afterwards. Free() the leaked memory.
CID:
1107223
Signed-off-by: Santosh Kumar Pradhan <spradhan@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/kdc/db-glue.c
patch
|
blob
|
history
diff --git
a/source4/kdc/db-glue.c
b/source4/kdc/db-glue.c
index ab606e8e237f578f318c2ad74f9f71c7f39223a3..f971d9b5d3f037c5c48fb6d3e0170e33845eff6d 100644
(file)
--- a/
source4/kdc/db-glue.c
+++ b/
source4/kdc/db-glue.c
@@
-1560,6
+1560,7
@@
krb5_error_code samba_kdc_firstkey(krb5_context context,
TALLOC_FREE(priv);
return ret;
}
+ krb5_free_default_realm(context, realm);
lret = dsdb_search(ldb_ctx, priv, &res,
priv->realm_dn, LDB_SCOPE_SUBTREE, user_attrs,