No, that isn't valid.

The allocator id is used to define the destructor for the row - if you're passing 1 then the rows may never have their destructors called - so child rows will be leaked.  (I will need to double check the code, but I think it is highly likely).