leak fixes for osd, mon