queue dynamic memory relocation