Corrected memory leaks

Some memory leaks where present due to forgotten free and wrong BYTE SIZE in bitmap_t allocation
Flushing the results