instance.c: Fix a memory leak reported by scan-build.