fixes: uninit var, bogus alloc size.