updated memory allocation for gab_buffer getdata