summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-17 01:26:35 +0100
committerMichael Adam <obnox@samba.org>2008-03-17 08:22:33 +0100
commit2ce3d4b918d078c7ba1ad9b55ce3ba51ff8e6951 (patch)
tree29ae068b2c1572238d7d35563cde60ff2d7b3630 /source3/registry
parentae7f7e44ffbb23132482fdffab182c7994b7147e (diff)
downloadsamba-2ce3d4b918d078c7ba1ad9b55ce3ba51ff8e6951.tar.gz
samba-2ce3d4b918d078c7ba1ad9b55ce3ba51ff8e6951.tar.bz2
samba-2ce3d4b918d078c7ba1ad9b55ce3ba51ff8e6951.zip
registry: use talloc instead of malloc for tdb data in regdb_store_values().
Michael (This used to be commit 860316cbe70836882bff16b39f0deb5c12cbd1f3)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index b46b1a18cd..8d9fdf2282 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -835,7 +835,7 @@ bool regdb_store_values( const char *key, REGVAL_CTR *values )
goto done;
}
- data.dptr = SMB_MALLOC_ARRAY( uint8, len );
+ data.dptr = TALLOC_ARRAY(ctx, uint8, len);
data.dsize = len;
len = regdb_pack_values(values, data.dptr, data.dsize);
@@ -866,7 +866,6 @@ bool regdb_store_values( const char *key, REGVAL_CTR *values )
result = (ret != -1);
done:
- SAFE_FREE(data.dptr);
TALLOC_FREE(ctx);
return result;
}