diff options
author | Michael Adam <obnox@samba.org> | 2008-03-17 01:26:35 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-17 08:22:33 +0100 |
commit | 2ce3d4b918d078c7ba1ad9b55ce3ba51ff8e6951 (patch) | |
tree | 29ae068b2c1572238d7d35563cde60ff2d7b3630 /source3/registry | |
parent | ae7f7e44ffbb23132482fdffab182c7994b7147e (diff) | |
download | samba-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.c | 3 |
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; } |