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:
committed by
Gerald (Jerry) Carter
parent
9eeb976773
commit
89b74b5354
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user