commit | dab17fd0b18c506998fefc6b476c871068a14505 | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Thu Jun 19 11:15:18 2014 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Thu Jun 19 11:15:18 2014 +0800 |
tree | c82c2fae920797bac4d4729250ace5ed97f43a64 | |
parent | 11bb56f04d8bac2f744b159f8b25ba708ea701c1 [diff] [blame] |
set @insn to NULL on error in cs_disasm_ex()
diff --git a/cs.c b/cs.c index 49e9504..bb44e5b 100644 --- a/cs.c +++ b/cs.c
@@ -489,6 +489,7 @@ } cs_mem_free(total); + *insn = NULL; handle->errnum = CS_ERR_MEM; return 0; } @@ -557,6 +558,7 @@ } cs_mem_free(total); + *insn = NULL; handle->errnum = CS_ERR_MEM; return 0; } @@ -588,6 +590,7 @@ } cs_mem_free(total); + *insn = NULL; handle->errnum = CS_ERR_MEM; return 0;