So was the segfault caused by that free happening when no error message had been allocated?