slic.c: fix memory leak (closes #29)