Added memory leak checking build

Signed-off-by: Slava Barinov <rayslava@gmail.com>