summaryrefslogtreecommitdiffstats
path: root/win/tclWinPipe.c
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 /win/tclWinPipe.c
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].
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r--win/tclWinPipe.c3
1 files changed, 2 insertions, 1 deletions
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);
}