radv: fix double free corruption in radv_alloc_memory()