Update RSS feed to include the macOS packages for Privoxy 3.0.33
[privoxy.git] / cgiedit.c
index 833c6f3..e73d5ee 100644 (file)
--- a/cgiedit.c
+++ b/cgiedit.c
@@ -1899,12 +1899,12 @@ static jb_err get_url_spec_param(struct client_state *csp,
    }
    err = create_pattern_spec(compiled, s);
    free(s);
+   free_pattern_spec(compiled);
    if (err)
    {
       free(param);
       return (err == JB_ERR_MEMORY) ? JB_ERR_MEMORY : JB_ERR_CGI_PARAMS;
    }
-   free_pattern_spec(compiled);
 
    if (param[strlen(param) - 1] == '\\')
    {
@@ -1935,12 +1935,12 @@ static jb_err get_url_spec_param(struct client_state *csp,
       }
       err = create_pattern_spec(compiled, s);
       free(s);
+      free_pattern_spec(compiled);
       if (err)
       {
          free(param);
          return (err == JB_ERR_MEMORY) ? JB_ERR_MEMORY : JB_ERR_CGI_PARAMS;
       }
-      free_pattern_spec(compiled);
    }
 
    *pvalue = param;
@@ -3124,7 +3124,7 @@ static jb_err cgi_edit_process_string_action(struct client_state *csp,
             break;
          default:
             log_error(LOG_LEVEL_ERROR,
-               "Unknown filter type: %c for filter %s. Filter ignored.", type, name);
+               "Unknown action type: %c for action %s. Action ignored.", type, name);
             continue;
       }
 
@@ -4509,7 +4509,7 @@ static jb_err action_render_string_actions_template(struct map * exports,
    int filter_identifier = 0;
    int i;
    char *prepared_template = strdup("");
-   const struct action_type_infotype = &action_type_info[string_action_type->action_type];
+   const struct action_type_info *type = &action_type_info[string_action_type->action_type];
 
    struct action_multi {
        char radio;