server: Free the old process image name if a second process image is mapped (Valgrind).
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
29e1494c72
commit
aa61e519d5
|
@ -376,6 +376,9 @@ static void add_process_view( struct thread *thread, struct memory_view *view )
|
|||
/* main exe */
|
||||
set_process_machine( process, view );
|
||||
list_add_head( &process->views, &view->entry );
|
||||
|
||||
free( process->image );
|
||||
process->image = NULL;
|
||||
if (get_view_nt_name( view, &name ) && (process->image = memdup( name.str, name.len )))
|
||||
process->imagelen = name.len;
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue