Problem: allocated string buffers are not NULL checked

Solution: check if malloc doesn’t return NULL