From 1c788eada2ad2c3b0caa658fa8923e29ffc8a436 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Fri, 24 Mar 2006 01:26:51 -0600 Subject: [PATCH] server: Fix memory leak in read_process_memory handler. --- server/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/process.c b/server/process.c index 824f9b32cb2..393a65ad4aa 100644 --- a/server/process.c +++ b/server/process.c @@ -1068,7 +1068,7 @@ DECL_HANDLER(read_process_memory) if (start_offset) memmove( buffer, (char *)buffer + start_offset, len ); set_reply_data_ptr( buffer, len ); } - else len = 0; + else free( buffer ); } } release_object( process );