Commit aa61e519 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Free the old process image name if a second process image is mapped (Valgrind).

parent 29e1494c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment