From 4c98c418aec2da287ac86241a067c31770a1f176 Mon Sep 17 00:00:00 2001 From: ericm Date: Tue, 25 Jul 2000 18:38:36 +0000 Subject: * win/tclWinPipe.c (BuildCommandLine): Added Tcl_DStringFree call to prevent potential memory leaks [Bug: 6041]. --- ChangeLog | 5 +++++ win/tclWinPipe.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6dc4963..58697f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-07-25 Eric Melski + + * win/tclWinPipe.c (BuildCommandLine): Added Tcl_DStringFree call + to prevent potential memory leaks [Bug: 6041]. + 2000-07-24 Eric Melski * doc/msgcat.n: Added documentation about the selection of the diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index c42de21..7dd209d 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinPipe.c,v 1.12 2000/06/13 20:30:23 ericm Exp $ + * RCS: @(#) $Id: tclWinPipe.c,v 1.13 2000/07/25 18:38:36 ericm Exp $ */ #include "tclWinInt.h" @@ -1569,6 +1569,7 @@ BuildCommandLine( Tcl_DStringAppend(&ds, "\"", 1); } } + Tcl_DStringFree(linePtr); Tcl_WinUtfToTChar(Tcl_DStringValue(&ds), Tcl_DStringLength(&ds), linePtr); Tcl_DStringFree(&ds); } -- cgit v0.12