diff options
author | dgp <dgp@noemail.net> | 2003-04-07 16:53:48 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2003-04-07 16:53:48 (GMT) |
commit | 9da6399e866bc767f1bb629f89a4cde9b6b9105d (patch) | |
tree | aa1f5379a1108d24b1f6236cd8a1a81e3a45ad14 | |
parent | 755e721a94f0a5f5bf866a0b01c3f47dd307c9f0 (diff) | |
download | tcl-9da6399e866bc767f1bb629f89a4cde9b6b9105d.zip tcl-9da6399e866bc767f1bb629f89a4cde9b6b9105d.tar.gz tcl-9da6399e866bc767f1bb629f89a4cde9b6b9105d.tar.bz2 |
* generic/tclCmdMZ.c (TraceExecutionProc): Added missing
Tcl_DiscardResult() call to avoid memory leak.
FossilOrigin-Name: 1e197c79ffdbbf0aa000e002e7a2c81e2acc7972
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclCmdMZ.c | 6 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2003-04-07 Don Porter <dgp@users.sourceforge.net> + + * generic/tclCmdMZ.c (TraceExecutionProc): Added missing + Tcl_DiscardResult() call to avoid memory leak. + 2003-04-07 Donal K. Fellows <zzcgudf@ernie.mvc.mcc.ac.uk> * generic/tclObj.c (tclWideIntType, TclInitObjSubsystem): diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 939914a..8e179ce 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdMZ.c,v 1.82.2.1 2003/03/12 18:04:39 dgp Exp $ + * RCS: @(#) $Id: tclCmdMZ.c,v 1.82.2.2 2003/04/07 16:54:11 dgp Exp $ */ #include "tclInt.h" @@ -4534,7 +4534,9 @@ TraceExecutionProc(ClientData clientData, Tcl_Interp *interp, /* Restore result if trace execution was successful */ Tcl_RestoreResult(interp, &state); iPtr->returnCode = stateCode; - } + } else { + Tcl_DiscardResult(&state); + } Tcl_DStringFree(&cmd); } |