Re: [Qemu-devel] Resource leaking in gen_intermediate_code_internal ?

2015-06-30 Thread Peter Maydell
On 30 June 2015 at 03:45, Jun Koi wrote: > Hello, > > In function gen_intermediate_code_internal() of target-i386/translate.c, we > have this code: > > cpu_T[0] = tcg_temp_new(); > cpu_T[1] = tcg_temp_new(); > cpu_A0 = tcg_temp_new(); > > > I cannot see anywhere cpu_T & cpu_A0 are free

[Qemu-devel] Resource leaking in gen_intermediate_code_internal ?

2015-06-29 Thread Jun Koi
Hello, In function gen_intermediate_code_internal() of target-i386/translate.c, we have this code: cpu_T[0] = tcg_temp_new(); cpu_T[1] = tcg_temp_new(); cpu_A0 = tcg_temp_new(); I cannot see anywhere cpu_T & cpu_A0 are freed, so each time this function is called, it allocates new va