mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-27 23:40:25 +00:00
Fix memory leak in RISC V (#1424)
This commit is contained in:
parent
e0340adcbb
commit
7a947b3180
@ -2565,6 +2565,7 @@ static bool printAliasInstr(MCInst *MI, SStream * OS, void *info)
|
||||
++I;
|
||||
tmpString[I] = 0;
|
||||
SStream_concat0(OS, tmpString);
|
||||
cs_mem_free(tmpString);
|
||||
if (AsmString[I] != '\0') {
|
||||
if (AsmString[I] == ' ' || AsmString[I] == '\t') {
|
||||
SStream_concat0(OS, " ");
|
||||
|
Loading…
Reference in New Issue
Block a user