[PATCH 1/1] Add talloc_memdup_type

Amin Azez azez at ufomechanic.net
Fri Jul 4 09:57:00 GMT 2008


talloc_memdup is all very fine, but is useless for cloning structs
that are type-checked using talloc_get_type.

talloc_memdup_type is like talloc_memdup except it preserves the name
on the new allocation

Signed-off-by: Sam Liddicott <sam at liddicott.com>
---
 source/lib/talloc/talloc.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cbd38af69486354a7d479ceaa9a7718a6fe4dc40.diff
Type: text/x-patch
Size: 611 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080704/b3ff436a/cbd38af69486354a7d479ceaa9a7718a6fe4dc40.bin


More information about the samba-technical mailing list