Skip to content

Commit

Permalink
Fix memory leak in RISC V (capstone-engine#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber authored and aquynh committed Mar 15, 2019
1 parent b5964c1 commit cb2940c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/RISCV/RISCVGenAsmWriter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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, " ");
Expand Down

0 comments on commit cb2940c

Please sign in to comment.