>From 244585ebf54233eb2103d19e2325da3dcb55ec3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Gonz=C3=A1lez?= Date: Wed, 19 Jun 2013 17:20:48 +0200 Subject: [PATCH 1/2] Moved free_urlpos() --- src/html-url.c | 15 +++++++++++++++ src/retr.c | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/html-url.c b/src/html-url.c index bb2b20e..932b29d 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -858,3 +858,18 @@ cleanup_html_url (void) if (interesting_attributes) hash_table_destroy (interesting_attributes); } + +/* Free the linked list of urlpos. */ +void +free_urlpos (struct urlpos *l) +{ + while (l) + { + struct urlpos *next = l->next; + if (l->url) + url_free (l->url); + xfree_null (l->local_name); + xfree (l); + l = next; + } +} diff --git a/src/retr.c b/src/retr.c index 683c811..714c78a 100644 --- a/src/retr.c +++ b/src/retr.c @@ -1166,21 +1166,6 @@ sleep_between_retrievals (int count) } } -/* Free the linked list of urlpos. */ -void -free_urlpos (struct urlpos *l) -{ - while (l) - { - struct urlpos *next = l->next; - if (l->url) - url_free (l->url); - xfree_null (l->local_name); - xfree (l); - l = next; - } -} - /* Rotate FNAME opt.backups times */ void rotate_backups(const char *fname) -- 1.8.4