ndr_heap_strdup
void *ndr_heap_strdup(ndr_heap_t *, const char *);
#define NDR_STRDUP(XA, S) ndr_heap_strdup((XA)->heap, (S))
if ((out->str = ndr_heap_strdup(heap, s)) == NULL)