diff options
-rw-r--r-- | source3/utils/net_ads_gpo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_ads_gpo.c b/source3/utils/net_ads_gpo.c index f1a3d935b7..de8a5477f8 100644 --- a/source3/utils/net_ads_gpo.c +++ b/source3/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); |