One should always immediately check and eventually free malloc calls.