fixed leaks in test cases (#1247)

This commit is contained in:
Dominik Maier
2020-05-02 12:18:18 +02:00
committed by GitHub
parent 1ad541cd55
commit 9fedbd96f4
6 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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);
}
/******************************************************************************/