Index: src/mod_python.c =================================================================== --- src/mod_python.c (revision 386674) +++ src/mod_python.c (working copy) @@ -1721,7 +1721,9 @@ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, req, "#python used but not allowed in %s", file); - SSI_CREATE_ERROR_BUCKET(ctx, f, bb); + CREATE_ERROR_BUCKET(ctx, tmp_buck, head_ptr, *inserted_head); + release_interpreter(); + return APR_SUCCESS; }