Fixed a memory corruption issue.
Fixed a memory corruption issue.

Commit 36c7ca0 "Fix malloc/calloc/free usage" introduced
a wrongly sized allocation which could cause memory
corruption.

Change-Id: I5693e7cd952fbb811a09caf251dbeb8bd23b490a

freedesktop-unofficial-mirror/xorg__driver__xf86-video-armsoc,singulared/xf86-video-armsoc,freedesktop-unofficial-mirror/xorg__driver__xf86-video-armsoc,singulared/xf86-video-armsoc,OtherCrashOverride/armsoc-hardkernel,mmind/xf86-video-armsoc,xin3liang/xf86-video-armsoc,OtherCrashOverride/armsoc-hardkernel,xin3liang/xf86-video-armsoc,mmind/xf86-video-armsoc,sbambrough/xf86-video-armsoc,apxii/xf86-video-armsoc,sbambrough/xf86-video-armsoc,apxii/xf86-video-armsoc