SCI: Fix memory leak

Thanks to digitall for testing.