ggreer/the_silver_searcher — pull request #94 by c4rlo (2012-10-14 13:54:47+00:00)
Title: Add error handling

Mostly catch out-of-memory conditions. All we do is print an error message and exit, but this is better than segfaulting at an unspecified point later on because we dereference a NULL pointer.

Also fix a memory leak in `getline()` if calling out own version of `fgetln()`.