You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tcl.apache.org by bh...@apache.org on 2019/11/29 19:24:27 UTC

[tcl-rivet] 02/02: Fix crash in cache when rvt file is not readable

This is an automated email from the ASF dual-hosted git repository.

bhdec pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tcl-rivet.git

commit 55dec07243e206de42051cd543476ffb52b5a456
Author: Brice Hamon <br...@ydotm.com>
AuthorDate: Fri Nov 29 14:23:52 2019 -0500

    Fix crash in cache when rvt file is not readable
---
 src/mod_rivet_ng/rivetCore.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mod_rivet_ng/rivetCore.c b/src/mod_rivet_ng/rivetCore.c
index 08f3485..04aed25 100644
--- a/src/mod_rivet_ng/rivetCore.c
+++ b/src/mod_rivet_ng/rivetCore.c
@@ -1905,6 +1905,9 @@ TCL_CMD_HEADER( Rivet_UrlScript )
 
         if (result != TCL_OK)
         {
+            // Hash cleanup
+            RivetCache_DeleteEntry(entry);
+
             Tcl_DecrRefCount(script);
             return result;
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tcl.apache.org
For additional commands, e-mail: commits-help@tcl.apache.org