paultag/tmperamental — pull request #1 by algernon (2012-09-04 08:33:57+00:00)
Title: A couple of simplifications

This pull requests consists of three patches, built on top of each other. The first one's the most important, as that fixes a memory leak (enforcer() was malloc()ing, but it didn't free it on the success path). The second one changes the exit(255) to abort(), so that the process will dump core, which helps in debugging the problem.

The last one is the least important: that only turns the dlsym() calls littered around in the override functions into one single function with a constructor attribute that collects it all into global static variables, and the rest will simply use those.