Fix crash reported in bug #926

This fixes an icky memory leak in the guile code.