git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6961048
)
s3-registry: fix malloc/talloc mismatch upon free in reg_enumvalue().
author
Günther Deschner
<gd@samba.org>
Wed, 30 Jun 2010 23:22:11 +0000
(
01:22
+0200)
committer
Günther Deschner
<gd@samba.org>
Wed, 30 Jun 2010 23:22:11 +0000
(
01:22
+0200)
Guenther
source3/registry/reg_api.c
patch
|
blob
|
history
diff --git
a/source3/registry/reg_api.c
b/source3/registry/reg_api.c
index 1954fb50419b65b25cfdc90e18d02a7d11506510..65118b9f4c33217e8ee4a28a85c4cbdfa0212f48 100644
(file)
--- a/
source3/registry/reg_api.c
+++ b/
source3/registry/reg_api.c
@@
-369,7
+369,7
@@
WERROR reg_enumvalue(TALLOC_CTX *mem_ctx, struct registry_key *key,
if (pname
&& !(*pname = talloc_strdup(
mem_ctx, regval_name(blob)))) {
-
SAFE
_FREE(val);
+
TALLOC
_FREE(val);
return WERR_NOMEM;
}