Leak fix in slug.c

Fixed a leak in slug.c