freeing committed logs now by using a valid flag