summaryrefslogtreecommitdiffstats
path: root/source/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
commitfeddc1447d585fd108d22a36bccc576fa81197ef (patch)
treec5019b3568ae62bf3bab66b636ff18cda35ff2bb /source/libgpo
parente2c9fc4cf5f0ff725330fa44f53782db65fca37e (diff)
downloadsamba-feddc1447d585fd108d22a36bccc576fa81197ef.tar.gz
samba-feddc1447d585fd108d22a36bccc576fa81197ef.tar.xz
samba-feddc1447d585fd108d22a36bccc576fa81197ef.zip
str_list_free is not needed anymore
Diffstat (limited to 'source/libgpo')
-rw-r--r--source/libgpo/gpo_ldap.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/source/libgpo/gpo_ldap.c b/source/libgpo/gpo_ldap.c
index 1d6b2756638..a34e6861a5d 100644
--- a/source/libgpo/gpo_ldap.c
+++ b/source/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;
}