aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-30 19:19:00 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-06-30 19:19:00 +0400
commitb53f8a8029384efcbc154971d7fbeed7f4d09d82 (patch)
treec02399d5bb5f1e7e1740f4dc3616708cca8f1f46
parentec28e7247f6e4b809b487ccb443b796ecb532ba4 (diff)
downloadrspamd-b53f8a8029384efcbc154971d7fbeed7f4d09d82.tar.gz
rspamd-b53f8a8029384efcbc154971d7fbeed7f4d09d82.zip
* Fix possible memory leakage by freeing g_error resourses
-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);