Resolve resource leak in test-seafile-fmt.c