[PD-dev] Memory reallocation problem