SPF: fix memory accounting for error case
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 7 Aug 2022 16:00:27 +0000 (17:00 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 7 Aug 2022 16:00:27 +0000 (17:00 +0100)
src/src/spf.c

index db6eea3a823a84be992f0bd28852a43859bed387..a8c0f75c4f30d0384e4c0c5291fc7fe08876794d 100644 (file)
@@ -204,7 +204,7 @@ spf_nxdomain = SPF_dns_rr_new_init(spf_dns_server,
   "", ns_t_any, 24 * 60 * 60, HOST_NOT_FOUND);
 if (!spf_nxdomain)
   {
-  free(spf_dns_server);
+  store_free(spf_dns_server);
   return NULL;
   }