Fix g4850949 (use correct API calls).
authorwwp <wwp@free.fr>
Mon, 16 Jan 2017 11:57:36 +0000 (12:57 +0100)
committerwwp <wwp@free.fr>
Mon, 16 Jan 2017 11:57:36 +0000 (12:57 +0100)
src/matcher.c

index a423fab1690f7d5db669d5a4b5efaf80c68c590d..64000e122965c21454e33085cf9c429e642f71b9 100644 (file)
@@ -1368,15 +1368,15 @@ static gboolean matcherprop_match_one_header(MatcherProp *matcher,
                                header = procheader_parse_header(buf);
                                if (!header ||
                                                !procheader_headername_equal(header->name, matcher->header)) {
-                                       procheader_free_header(header);
+                                       procheader_header_free(header);
                                        return FALSE;
                                }
                                address_list = address_list_append(address_list, header->body);
                                if (address_list == NULL) {
-                                       procheader_free_header(header);
+                                       procheader_header_free(header);
                                        return FALSE;
                                }
-                               procheader_free_header(header);
+                               procheader_header_free(header);
 
                        } else {
                                header = procheader_parse_header(buf);
@@ -1390,7 +1390,7 @@ static gboolean matcherprop_match_one_header(MatcherProp *matcher,
                                         procheader_headername_equal(header->name, "Reply-To") ||
                                         procheader_headername_equal(header->name, "Sender"))
                                        address_list = address_list_append(address_list, header->body);
-                               procheader_free_header(header);
+                               procheader_header_free(header);
                                if (address_list == NULL)
                                        return FALSE;
                        }