kdc: Free the resource which is not used anymore
authorSantosh Kumar Pradhan <spradhan@redhat.com>
Fri, 21 Feb 2014 04:13:47 +0000 (09:43 +0530)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 21 Feb 2014 14:59:28 +0000 (15:59 +0100)
commit58e7e564d7c81dc1b1084174957568396233a743
treedd98d452314b40fb9abdc657a9b3008efae2d6b6
parent66fb0ce9557553a4c01607b517e65ac4c93841d0
kdc: Free the resource which is not used anymore

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