From eb7bf9d7309914fb2207f822e8017e1c1001de46 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 29 Jun 2010 10:07:22 +0200 Subject: [PATCH] s3-net: Make sure we don't call free on garbage. Found by clang-analyzer. --- source3/utils/net_ads_gpo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/net_ads_gpo.c b/source3/utils/net_ads_gpo.c index b120ca597b6..3d89045c491 100644 --- a/source3/utils/net_ads_gpo.c +++ b/source3/utils/net_ads_gpo.c @@ -291,7 +291,7 @@ out: static int net_ads_gpo_list(struct net_context *c, int argc, const char **argv) { - ADS_STRUCT *ads; + ADS_STRUCT *ads = NULL; ADS_STATUS status; LDAPMessage *res = NULL; TALLOC_CTX *mem_ctx;