1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-28 09:49:30 +03:00

don't double free ldap message lists

(This used to be commit f64612b89b)
This commit is contained in:
Andrew Tridgell
2001-12-05 07:36:35 +00:00
parent 0799c44680
commit 5329af6e11

View File

@ -159,7 +159,6 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain,
done:
if (res) ads_msgfree(ads, res);
if (msg) ads_msgfree(ads, msg);
return status;
}
@ -243,7 +242,6 @@ static NTSTATUS enum_dom_groups(struct winbindd_domain *domain,
done:
if (res) ads_msgfree(ads, res);
if (msg) ads_msgfree(ads, msg);
return status;
}
@ -559,7 +557,6 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
status = NT_STATUS_OK;
done:
if (msg) ads_msgfree(ads, msg);
if (res) ads_msgfree(ads, res);
return status;