diff options
author | dkf <dkf@noemail.net> | 2004-02-21 12:48:49 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2004-02-21 12:48:49 (GMT) |
commit | 57a80a62ffa117d99fafab06c30694f778113f49 (patch) | |
tree | 4634e97b2dabba46adf371e932361f872a21ba31 /generic/tclLoad.c | |
parent | fd15508550488e4e89afc0bb78308c1436657f14 (diff) | |
download | tcl-57a80a62ffa117d99fafab06c30694f778113f49.zip tcl-57a80a62ffa117d99fafab06c30694f778113f49.tar.gz tcl-57a80a62ffa117d99fafab06c30694f778113f49.tar.bz2 |
Fix memory leak on error path
FossilOrigin-Name: ccdf97e3748b01a7cf376f8cce29e22bc53eea77
Diffstat (limited to 'generic/tclLoad.c')
-rw-r--r-- | generic/tclLoad.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclLoad.c b/generic/tclLoad.c index 6773ac4..2227e6e 100644 --- a/generic/tclLoad.c +++ b/generic/tclLoad.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: tclLoad.c,v 1.9 2003/02/01 23:37:29 kennykb Exp $ + * RCS: @(#) $Id: tclLoad.c,v 1.10 2004/02/21 12:48:50 dkf Exp $ */ #include "tclInt.h" @@ -168,7 +168,8 @@ Tcl_LoadObjCmd(dummy, interp, objc, objv) slaveIntName = Tcl_GetString(objv[3]); target = Tcl_GetSlave(interp, slaveIntName); if (target == NULL) { - return TCL_ERROR; + code = TCL_ERROR; + goto done; } } |