diff options
Diffstat (limited to 'source/utils/net_ads_gpo.c')
-rw-r--r-- | source/utils/net_ads_gpo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/utils/net_ads_gpo.c b/source/utils/net_ads_gpo.c index f1a3d935b75..de8a5477f86 100644 --- a/source/utils/net_ads_gpo.c +++ b/source/utils/net_ads_gpo.c @@ -173,15 +173,15 @@ static int net_ads_gpo_list(int argc, const char **argv) if (!ADS_ERR_OK(status)) { d_printf("parse failed: %s\n", ads_errstr(status)); + ads_memfree(ads, dn); goto out; } dump_gpo(mem_ctx, &gpo); - + ads_memfree(ads, dn); } out: - ads_memfree(ads, dn); ads_msgfree(ads, res); talloc_destroy(mem_ctx); |