diff --git a/libs/hikyuu/utilities/util.cpp b/libs/hikyuu/utilities/util.cpp index 0c6437b0..00be0c00 100644 --- a/libs/hikyuu/utilities/util.cpp +++ b/libs/hikyuu/utilities/util.cpp @@ -215,8 +215,8 @@ string HKU_API utf8_to_gb(const string& szinput) { iconv(cd, &in, &inlen, &out, &outlen); iconv_close(cd); string result(outbuf); - free(oufbuf); - return outbuf; + free(outbuf); + return result; } string HKU_API gb_to_utf8(const string& szinput) {