Missing checks from issue 165
Memleak in mj2.c