diff options
| author | nijtmans <nijtmans> | 2008-12-17 16:47:38 (GMT) |
|---|---|---|
| committer | nijtmans <nijtmans> | 2008-12-17 16:47:38 (GMT) |
| commit | 76c02e01f8ebe332dbe3b925b983c797865c3d26 (patch) | |
| tree | ba50f40b968690dbb883c23d9fe46b3b2f9659e6 /generic/tclVar.c | |
| parent | d30526a1bc5f2c71ab97a645c6dcc9e2991b79a1 (diff) | |
| download | tcl-76c02e01f8ebe332dbe3b925b983c797865c3d26.zip tcl-76c02e01f8ebe332dbe3b925b983c797865c3d26.tar.gz tcl-76c02e01f8ebe332dbe3b925b983c797865c3d26.tar.bz2 | |
move variable "length" inside if()
don't use ckfree((void *)...) but
ckfree((char *)...)
Diffstat (limited to 'generic/tclVar.c')
| -rw-r--r-- | generic/tclVar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c index 34d3741..57607d3 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.c @@ -16,7 +16,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclVar.c,v 1.172 2008/11/17 22:15:34 nijtmans Exp $ + * RCS: @(#) $Id: tclVar.c,v 1.173 2008/12/17 16:47:38 nijtmans Exp $ */ #include "tclInt.h" @@ -3223,7 +3223,7 @@ Tcl_ArrayObjCmd( stats = Tcl_HashStats((Tcl_HashTable *) varPtr->value.tablePtr); if (stats != NULL) { Tcl_SetObjResult(interp, Tcl_NewStringObj(stats, -1)); - ckfree((void *)stats); + ckfree((char *)stats); } else { Tcl_SetResult(interp,"error reading array statistics",TCL_STATIC); return TCL_ERROR; |
