git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1db7356
)
s3-net: Make sure we don't call free on garbage.
author
Andreas Schneider
<asn@samba.org>
Tue, 29 Jun 2010 08:07:22 +0000
(10:07 +0200)
committer
Andreas Schneider
<asn@samba.org>
Tue, 29 Jun 2010 09:12:12 +0000
(11:12 +0200)
Found by clang-analyzer.
source3/utils/net_ads_gpo.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_ads_gpo.c
b/source3/utils/net_ads_gpo.c
index b120ca597b6f626f6955028d2b9a7834f0f1badf..3d89045c4912eb7ac701174c923cb710ef90d062 100644
(file)
--- 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;