summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-29 10:07:22 +0200
committerAndreas Schneider <asn@samba.org>2010-06-29 11:12:12 +0200
commiteb7bf9d7309914fb2207f822e8017e1c1001de46 (patch)
tree926e21049ff8346b89a313dff616062aa2f3adbe /source3
parent1db7356fa17cb3aeffcf4aff2149eaceaa5a62ea (diff)
downloadsamba-eb7bf9d7309914fb2207f822e8017e1c1001de46.tar.gz
samba-eb7bf9d7309914fb2207f822e8017e1c1001de46.tar.bz2
samba-eb7bf9d7309914fb2207f822e8017e1c1001de46.zip
s3-net: Make sure we don't call free on garbage.
Found by clang-analyzer.
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads_gpo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_ads_gpo.c b/source3/utils/net_ads_gpo.c
index b120ca597b..3d89045c49 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;