summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--win/tclWinPipe.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6dc4963..58697f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-25 Eric Melski <ericm@ajubasolutions.com>
+
+ * win/tclWinPipe.c (BuildCommandLine): Added Tcl_DStringFree call
+ to prevent potential memory leaks [Bug: 6041].
+
2000-07-24 Eric Melski <ericm@ajubasolutions.com>
* 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);
}