mirror of
https://github.com/Simplxss/SignerServer.git
synced 2024-11-21 00:37:53 +08:00
fix memory leak
This commit is contained in:
parent
a91e64a51b
commit
58bc6b1f57
@ -150,5 +150,7 @@ std::tuple<std::string, std::string, std::string> Sign::Call(const std::string_v
|
|||||||
std::string extraDataHex = Bin2Hex(signResult + 256, *(signResult + ExtraOffsets));
|
std::string extraDataHex = Bin2Hex(signResult + 256, *(signResult + ExtraOffsets));
|
||||||
std::string tokenDataHex = Bin2Hex(signResult, *(signResult + TokenOffsets));
|
std::string tokenDataHex = Bin2Hex(signResult, *(signResult + TokenOffsets));
|
||||||
|
|
||||||
|
delete[] signResult;
|
||||||
|
|
||||||
return std::make_tuple(signDataHex, extraDataHex, tokenDataHex);
|
return std::make_tuple(signDataHex, extraDataHex, tokenDataHex);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user