fixed leaks in test cases (#1247)
This commit is contained in:
@ -301,6 +301,7 @@ static void test_i386_map_ptr(void)
|
||||
printf(">>> Failed to read 4 bytes from [0x%x]\n", ADDRESS);
|
||||
|
||||
uc_close(uc);
|
||||
free(mem);
|
||||
}
|
||||
|
||||
static void test_i386_jump(void)
|
||||
|
@ -280,6 +280,7 @@ static void gdt_demo()
|
||||
assert(memcmp(buf, "\x67\x45\x23\x01\xef\xcd\xab\x89", 8) == 0);
|
||||
|
||||
uc_close(uc);
|
||||
free(gdt);
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
Reference in New Issue
Block a user