Fix a minor memory leak

Signed-off-by: Niko Rosvall <niko@ideabyte.net>
Updates

Signed-off-by: Niko Rosvall <niko@ideabyte.net>