Memory leak closed

Signed-off-by: Frank Mertens <frank@cyblogic.de>