aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/surbl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 53e04df90..093b67d88 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -393,8 +393,12 @@ make_surbl_requests (struct uri* url, struct worker_task *task, GTree *tree)
}
else if (err != NULL && err->code != WHITELIST_ERROR) {
msg_info ("surbl_test_url: cannot format url string for surbl %s, %s", struri (url), err->message);
+ g_error_free (err);
return;
}
+ else if (err != NULL) {
+ g_error_free (err);
+ }
}
else {
msg_debug ("make_surbl_requests: skipping symbol that is not in view: %s", suffix->symbol);