projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9a83de
)
Fix leaks which occurs for DNS failures
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 20 Dec 2006 23:28:37 +0000
(23:28 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 20 Dec 2006 23:28:37 +0000
(23:28 +0000)
src/pazpar2.c
patch
|
blob
|
history
diff --git
a/src/pazpar2.c
b/src/pazpar2.c
index
8df9491
..
f903c6a
100644
(file)
--- a/
src/pazpar2.c
+++ b/
src/pazpar2.c
@@
-1,4
+1,4
@@
-/* $Id: pazpar2.c,v 1.2 2006-12-20 22:19:35 adam Exp $ */;
+/* $Id: pazpar2.c,v 1.3 2006-12-20 23:28:37 adam Exp $ */;
#include <stdlib.h>
#include <stdio.h>
@@
-1021,6
+1021,8
@@
void load_simpletargets(const char *fn)
if ((res = getaddrinfo(url, port, &hints, &addrinfo)))
{
yaz_log(YLOG_WARN, "Failed to resolve %s: %s", url, gai_strerror(res));
+ xfree(host->hostport);
+ xfree(host);
continue;
}
assert(addrinfo->ai_family == PF_INET);