Fix underlying memory leaks. When realloc is failed, memories are leaked.
More strict NULL checks.
Add error checks for small environments which pointer is less than 32bit. These code will be removed by optimizer if the target runs on 32bit or above.
Add comments why there is no need to put the SIZE_ERROR check. It is for reviews in the future.
Remove redundant whitespaces. Just cosmetic.
Merge pull request #1214 from monaka/pr-cleanup-load.c

Clean up load.c