summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorericm <ericm>2000-07-25 18:38:36 (GMT)
committerericm <ericm>2000-07-25 18:38:36 (GMT)
commit4c98c418aec2da287ac86241a067c31770a1f176 (patch)
tree43a3c87829e04c430a2f2cb960ce8e9eb1fcf59b
parentceef4e3b16c0df26a54e2fb02ca7f6616140639d (diff)
downloadtcl-4c98c418aec2da287ac86241a067c31770a1f176.zip
tcl-4c98c418aec2da287ac86241a067c31770a1f176.tar.gz
tcl-4c98c418aec2da287ac86241a067c31770a1f176.tar.bz2
* win/tclWinPipe.c (BuildCommandLine): Added Tcl_DStringFree call
to prevent potential memory leaks [Bug: 6041].
-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);
}