Almost all memory leaks resolved, still need some regression testing. cacherequest, malloc'ed on line 322 is leaking 1 byte when there is a valid request.
Fixed that last byte! I had to free the memory before reallocated it, of course. Regression testing is next.
Fixing the memory leaks doesn't seem to have created any bugs. The memory leaks still kinda exist because the program has no way of cleanly exiting and reaching the cleanup code right now, but when I start forking processes instead of running in a loop that'll change.
Update .gitignore for vim swap files