fix bug on memory allocation size.

reported at https://github.com/pg-strom/devel/issues/6