[DF-591] fix leak in mac os