mirror of
https://github.com/samba-team/samba.git
synced 2025-11-06 08:23:50 +03:00
r4546: Use talloc_p() instad of talloc()
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
109c91650a
commit
2ec3a137d7
@@ -313,7 +313,7 @@ void DATA_BLOB_ptr_from_python(TALLOC_CTX *mem_ctx, DATA_BLOB **s,
|
||||
return;
|
||||
}
|
||||
|
||||
*s = talloc(mem_ctx, sizeof(DATA_BLOB));
|
||||
*s = talloc_p(mem_ctx, DATA_BLOB);
|
||||
|
||||
(*s)->length = PyString_Size(obj);
|
||||
(*s)->data = PyString_AsString(obj);
|
||||
|
||||
Reference in New Issue
Block a user