Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-12-01 11:44:55


Author: grafik
Date: 2007-12-01 11:44:54 EST (Sat, 01 Dec 2007)
New Revision: 41535
URL: http://svn.boost.org/trac/boost/changeset/41535

Log:
Plug memory leak when closing out actions. Thanks to Martin Kortmann for finding this.
Text files modified:
   trunk/tools/jam/src/execnt.c | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/tools/jam/src/execnt.c
==============================================================================
--- trunk/tools/jam/src/execnt.c (original)
+++ trunk/tools/jam/src/execnt.c 2007-12-01 11:44:54 EST (Sat, 01 Dec 2007)
@@ -539,6 +539,7 @@
         string_free(&cmdtab[i].target); string_new(&cmdtab[i].target);
         string_free(&cmdtab[i].command); string_new(&cmdtab[i].command);
         if (cmdtab[i].pi.hProcess) { CloseHandle(cmdtab[i].pi.hProcess); cmdtab[i].pi.hProcess = 0; }
+ if (cmdtab[i].pi.hThread) { CloseHandle(cmdtab[i].pi.hThread); cmdtab[i].pi.hThread = 0; }
         if (cmdtab[i].pipe_out[0]) { CloseHandle(cmdtab[i].pipe_out[0]); cmdtab[i].pipe_out[0] = 0; }
         if (cmdtab[i].pipe_out[1]) { CloseHandle(cmdtab[i].pipe_out[1]); cmdtab[i].pipe_out[1] = 0; }
         if (cmdtab[i].pipe_err[0]) { CloseHandle(cmdtab[i].pipe_err[0]); cmdtab[i].pipe_err[0] = 0; }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk