Jonovono/c — pull request #3 by splinterofchaos (2012-05-15 10:54:39+00:00)
Title: A free() for every malloc.

A lot of code looked almost exactly the same:
```
char * s = malloc(snprintf(NULL, 0, "%s/%s", x, y) + 1);
snprintf(s, "%s/%s", x, y);
```
Now, one call to allocFilename("%s/%s",x,y) does the trick. Also added a
freeFilename for each alloc instance to avoid a memory leak.