Check returned pointer is valid.
Klocwork #233
5 files changed