fix: use "cvAlloc" wrapper function for malloc.