1
0
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:
Tim Potter
2005-01-06 02:10:33 +00:00
committed by Gerald (Jerry) Carter
parent 109c91650a
commit 2ec3a137d7

View File

@@ -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);