How to receive memory warning in Corona ?

In order to receive memory warning in Corona, use the following chunk of code,

local function memoryWarningCheck ( event )
    print( "Memory Warning ! Memory is leaking somewhere! " )
end
Runtime:addEventListener( "memoryWarning", memoryWarningCheck )

:)