From 95e539f3e6c8d9c7cbc5f799f679acf81d2dcc65 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 24 Sep 2020 22:37:01 +0800 Subject: [PATCH] samples: make sample_x86.c to use uc_context_free() to free context (instead of uc_free()) --- samples/sample_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/sample_x86.c b/samples/sample_x86.c index 1028504f..1b7ed33f 100644 --- a/samples/sample_x86.c +++ b/samples/sample_x86.c @@ -737,7 +737,7 @@ static void test_i386_context_save(void) printf(">>> EAX = 0x%x\n", r_eax); // free the CPU context - err = uc_free(context); + err = uc_context_free(context); if (err) { printf("Failed on uc_free() with error returned: %u\n", err); return;