summaryrefslogtreecommitdiffstats
path: root/source3/libgpo
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-04 21:05:41 +0100
committerVolker Lendecke <vl@samba.org>2008-02-04 21:05:41 +0100
commitb361956942618ec2f7c2efc60cb190858adbc516 (patch)
treebac3c4bc6749507efbf028d261cfba524a186639 /source3/libgpo
parent2762b9a97582b9b28fd5985ba8e3d0299126820e (diff)
downloadsamba-b361956942618ec2f7c2efc60cb190858adbc516.tar.gz
samba-b361956942618ec2f7c2efc60cb190858adbc516.tar.xz
samba-b361956942618ec2f7c2efc60cb190858adbc516.zip
str_list_free is not needed anymore
(This used to be commit feddc1447d585fd108d22a36bccc576fa81197ef)
Diffstat (limited to 'source3/libgpo')
-rw-r--r--source3/libgpo/gpo_ldap.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/source3/libgpo/gpo_ldap.c b/source3/libgpo/gpo_ldap.c
index 1d6b2756638..a34e6861a5d 100644
--- a/source3/libgpo/gpo_ldap.c
+++ b/source3/libgpo/gpo_ldap.c
@@ -137,12 +137,8 @@ bool ads_parse_gp_ext(TALLOC_CTX *mem_ctx,
ret = True;
parse_error:
- if (ext_list) {
- str_list_free_talloc(mem_ctx, &ext_list);
- }
- if (ext_strings) {
- str_list_free_talloc(mem_ctx, &ext_strings);
- }
+ TALLOC_FREE(ext_list);
+ TALLOC_FREE(ext_strings);
return ret;
}
@@ -226,10 +222,7 @@ static ADS_STATUS gpo_parse_gplink(TALLOC_CTX *mem_ctx,
status = ADS_SUCCESS;
parse_error:
-
- if (link_list) {
- str_list_free_talloc(mem_ctx, &link_list);
- }
+ TALLOC_FREE(link_list);
return status;
}