Prevent memory leak in S3M loader

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>