Fix memory leak in RISC V (#1424)

This commit is contained in:
Catena cyber 2019-03-15 05:31:17 +01:00 committed by Nguyen Anh Quynh
parent e0340adcbb
commit 7a947b3180

View File

@ -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, " ");