diff options
-rw-r--r-- | generic/tclScan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclScan.c b/generic/tclScan.c index 4dea57a..d631116 100644 --- a/generic/tclScan.c +++ b/generic/tclScan.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclScan.c,v 1.9 2002/02/07 01:50:46 hobbs Exp $ + * RCS: @(#) $Id: tclScan.c,v 1.10 2002/02/08 09:33:24 hobbs Exp $ */ #include "tclInt.h" @@ -1124,7 +1124,9 @@ Tcl_ScanObjCmd(dummy, interp, objc, objv) } } } - ckfree((char*) objs); + if (objs != NULL) { + ckfree((char*) objs); + } if (code == TCL_OK) { if (underflow && (nconversions == 0)) { if (numVars) { |