diff options
author | dgp <dgp@users.sourceforge.net> | 2012-11-29 13:15:36 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-11-29 13:15:36 (GMT) |
commit | 665a380e86877529932a05da6d253011e8065642 (patch) | |
tree | 4dfa7935a532c38b06c397816146ad3cfc2ef5fe | |
parent | da12d58e11aba7b3a5f30364766ee0d5f30ce00b (diff) | |
download | tcl-665a380e86877529932a05da6d253011e8065642.zip tcl-665a380e86877529932a05da6d253011e8065642.tar.gz tcl-665a380e86877529932a05da6d253011e8065642.tar.bz2 |
silence compiler warning
-rw-r--r-- | generic/tclCompCmdsSZ.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclCompCmdsSZ.c b/generic/tclCompCmdsSZ.c index be63e0e..9c93fb2 100644 --- a/generic/tclCompCmdsSZ.c +++ b/generic/tclCompCmdsSZ.c @@ -1224,12 +1224,7 @@ TclCompileSwitchCmd( if (TCL_OK != TclFindElement(NULL, bytes, numBytes, &(bodyTokenArray[numWords].start), &bytes, &(bodyTokenArray[numWords].size), &literal) || !literal) { - abort: - ckfree((char *) bodyToken); - ckfree((char *) bodyTokenArray); - ckfree((char *) bodyLines); - ckfree((char *) bodyContLines); - return TCL_ERROR; + goto abort; } bodyTokenArray[numWords].type = TCL_TOKEN_TEXT; @@ -1254,7 +1249,12 @@ TclCompileSwitchCmd( numWords++; } if (numWords % 2) { - goto abort; + abort: + ckfree((char *) bodyToken); + ckfree((char *) bodyTokenArray); + ckfree((char *) bodyLines); + ckfree((char *) bodyContLines); + return TCL_ERROR; } } else if (numWords % 2 || numWords == 0) { /* |