diff options
| author | Kevin B Kenny <kennykb@acm.org> | 2011-08-06 16:27:00 (GMT) |
|---|---|---|
| committer | Kevin B Kenny <kennykb@acm.org> | 2011-08-06 16:27:00 (GMT) |
| commit | 3b0b746629bbd8b72538cdd9c4927267b431ff8d (patch) | |
| tree | 24f39a59ac9d5fcacb7a761a59751625cf1a2af9 /generic/tclAssembly.c | |
| parent | c6c14bf922488f8ea0bff6c34f693995b8cb53b2 (diff) | |
| download | tcl-3b0b746629bbd8b72538cdd9c4927267b431ff8d.zip tcl-3b0b746629bbd8b72538cdd9c4927267b431ff8d.tar.gz tcl-3b0b746629bbd8b72538cdd9c4927267b431ff8d.tar.bz2 | |
Plug another memory leak. [Bug 3384840]
Diffstat (limited to 'generic/tclAssembly.c')
| -rw-r--r-- | generic/tclAssembly.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c index f45ae07..3c23358 100644 --- a/generic/tclAssembly.c +++ b/generic/tclAssembly.c @@ -3893,11 +3893,18 @@ BuildExceptionRanges( prevPtr = bbPtr; } + /* Make sure that all catches are closed */ + if (catchDepth != 0) { Tcl_Panic("unclosed catch at end of code in " "tclAssembly.c:BuildExceptionRanges, can't happen"); } + /* Free temp storage */ + + ckfree(catchIndices); + ckfree(catches); + return TCL_OK; } |
