lib: Remove unneeded memory_alloc