Memleak fix.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Added running UT in valgrind

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
Merge pull request #45 from lgromanowski/master

Memleak fix.