minor things..
fixed memory leak in loop.c
fixed bug in exec for x86_64