Convert the prs_XXX struct and functions to use talloc instead of malloc. Passes...
[samba.git] / source3 / include / ntdomain.h
index 213cb9ff75d98033835b2b20df4808951bbef064..25bef474931aba82504adb79847dbe292a3bb654 100644 (file)
@@ -42,7 +42,9 @@ typedef struct _prs_struct {
        uint32 data_offset; /* Current working offset into data. */
        uint32 buffer_size; /* Current allocated size of the buffer. */
        uint32 grow_size; /* size requested via prs_grow() calls */
-       char *data_p; /* The buffer itself. */
+       /* The buffer itself. If "is_dynamic" is true this
+        * MUST BE TALLOC'ed off mem_ctx. */
+       char *data_p;
        TALLOC_CTX *mem_ctx; /* When unmarshalling, use this.... */
 } prs_struct;