mirror of
https://github.com/samba-team/samba.git
synced 2025-11-15 16:23:49 +03:00
r4550: talloc() is now typesafe. It is exactly equivalent to the old talloc_p() macro. Use
talloc_size() if you want the old behaviour. I have kept talloc_p() as an alias for now. Once we change all calls to be plain talloc() then we can remove it.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
89b74b5354
commit
2011bbeb84
@@ -523,11 +523,11 @@ static BOOL test_realloc(void)
|
||||
p1 = talloc_realloc(NULL, p1, 20);
|
||||
CHECK_SIZE(p1, 20);
|
||||
|
||||
talloc(p1, 0);
|
||||
talloc_new(p1);
|
||||
|
||||
p2 = talloc_realloc(p1, NULL, 30);
|
||||
|
||||
talloc(p1, 0);
|
||||
talloc_new(p1);
|
||||
|
||||
p2 = talloc_realloc(p1, p2, 40);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user