* Removed some memory leaks

Signed-off-by: jirihnidek <jiri.hnidek@tul.cz>