1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00

r4549: got rid of a lot more uses of plain talloc(), instead using

talloc_size() or talloc_array_p() where appropriate.

also fixed a memory leak in pvfs_copy_file() (failed to free a memory
context)
This commit is contained in:
Andrew Tridgell
2005-01-06 03:06:58 +00:00
committed by Gerald (Jerry) Carter
parent 9eeb976773
commit 89b74b5354
41 changed files with 83 additions and 80 deletions

View File

@@ -37,7 +37,7 @@ DATA_BLOB data_blob_named(const void *p, size_t length, const char *name)
if (p) {
ret.data = talloc_memdup(NULL, p, length);
} else {
ret.data = talloc(NULL, length);
ret.data = talloc_size(NULL, length);
}
if (ret.data == NULL) {
ret.length = 0;