plugged memory leak

Signed-off-by: nixnodes <code@nixnodes.net>