1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00

Move to talloc control of SPOOL_XXX structs. Move to talloc control of

security descriptors and pointers. Syncup with 2.2 tree.
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 2d3429cfe2
commit 14d5997dc8
13 changed files with 451 additions and 707 deletions

View File

@@ -139,3 +139,16 @@ void *talloc_zero(TALLOC_CTX *t, size_t size)
return p;
}
/* memdup with a talloc. */
void *talloc_memdup(TALLOC_CTX *t, void *p, size_t size)
{
void *newp = talloc(t,size);
if (!newp)
return 0;
memcpy(newp, p, size);
return newp;
}