r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
[ab/samba.git/.git] / source4 / libads / ldap_user.c
index 56a0d8013b2b8ee6ddc32a0d37cc50dcf6907a8c..0032f8c9ab2dc24b7901358a37260f0d592c25b8 100644 (file)
@@ -80,7 +80,7 @@ ADS_STATUS ads_add_user_acct(ADS_STRUCT *ads, const char *user,
        status = ads_gen_add(ads, new_dn, mods);
 
  done:
-       talloc_destroy(ctx);
+       talloc_free(ctx);
        return status;
 }
 
@@ -113,7 +113,7 @@ ADS_STATUS ads_add_group_acct(ADS_STRUCT *ads, const char *group,
        status = ads_gen_add(ads, new_dn, mods);
 
  done:
-       talloc_destroy(ctx);
+       talloc_free(ctx);
        return status;
 }
 #endif