#NEWLINE# def assert_no_memory_leak( self ) : #NEWLINE# #INDENT# old = self . __init_stats #NEWLINE# new = rtsys . get_allocation_stats ( ) #NEWLINE# total_alloc = ( new . alloc - old . alloc ) #NEWLINE# total_free = ( new . free - old . free ) #NEWLINE# total_mi_alloc = ( new . mi_alloc - old . mi_alloc ) #NEWLINE# total_mi_free = ( new . mi_free - old . mi_free ) #NEWLINE# self . assertEqual ( total_alloc , total_free ) #NEWLINE# self . assertEqual ( total_mi_alloc , total_mi_free )