summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-11-05 09:46:49 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-11-05 03:33:32 +0100
commit71e1c080cbd033b3118952c2da05186252fc411a (patch)
treee5e8b60b20e4ba05115b93d7f30f42d36104b4db /source3/libads
parentc452efe977753a44807dd12a1b2ff8ce1387bfa6 (diff)
downloadsamba-71e1c080cbd033b3118952c2da05186252fc411a.tar.gz
samba-71e1c080cbd033b3118952c2da05186252fc411a.tar.bz2
samba-71e1c080cbd033b3118952c2da05186252fc411a.zip
libads: Always free the talloc_stackframe() on error path
Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Nov 5 03:33:32 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/kerberos.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index 3183e26c85..50a409c1af 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -701,6 +701,7 @@ static char *get_kdc_ip_string(char *mem_ctx,
char *kdc_str = print_kdc_line(mem_ctx, "", pss, kdc_name);
if (kdc_str == NULL) {
+ TALLOC_FREE(frame);
return NULL;
}