Commit bb332cb23412619d41cb10a7c65a5d120555470f
1 parent
f4af02ed
Use qemu_free() on env instead of free.
Fixes a glibc Abort on qemu-x86_64 -cpu foo. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5314 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-i386/helper.c
| @@ -433,7 +433,7 @@ void cpu_reset(CPUX86State *env) | @@ -433,7 +433,7 @@ void cpu_reset(CPUX86State *env) | ||
| 433 | 433 | ||
| 434 | void cpu_x86_close(CPUX86State *env) | 434 | void cpu_x86_close(CPUX86State *env) |
| 435 | { | 435 | { |
| 436 | - free(env); | 436 | + qemu_free(env); |
| 437 | } | 437 | } |
| 438 | 438 | ||
| 439 | /***********************************************************/ | 439 | /***********************************************************/ |