Fixed memory leak in LINQ.

Now the only leak valgrind finds for inqp_test is a shawn bug :)
Little fixes for TMote Sky experiments