Fix error handling in liblinear_helper.c