*fixed some potential memory leak when popped unexpected type of argument.

This commit is contained in:
Wang Renxin 2017-05-18 13:59:31 +08:00
parent 10098a7e36
commit 2fd9519b09
5 changed files with 227 additions and 195 deletions

View File

@ -1,3 +1,6 @@
May. 18 2017
Fixed some memory potential leak when popped unexpected type of argument
May. 17 2017
Fixed a forked structure disposing issue if error occurs

File diff suppressed because it is too large Load Diff

View File

@ -352,7 +352,7 @@ extern "C" {
#endif /* MB_CODES */
#ifndef mb_check
# define mb_check(__r) do { int __hr = __r; if(__hr != MB_FUNC_OK) { return __hr; } } while(0)
# define mb_check(__expr) do { int __hr = (__expr); if((__hr) != MB_FUNC_OK) { return (__hr); } } while(0)
#endif /* mb_check */
#ifndef mb_reg_fun

Binary file not shown.

Binary file not shown.