Fixed an of by one error in thread.c (Also found by Freaken at https://github.com/katmagic/Shallot/pull/9)
Freed a non freed elem in print.c