commit libcares2 for openSUSE:Factory
Hello community, here is the log from the commit of package libcares2 for openSUSE:Factory checked in at Fri Sep 24 00:25:51 CEST 2010. -------- --- libcares2/libcares2.changes 2010-04-24 13:53:33.000000000 +0200 +++ /mounts/work_src_done/STABLE/libcares2/libcares2.changes 2010-07-25 21:04:14.000000000 +0200 @@ -1,0 +2,8 @@ +Sun Jul 25 19:02:16 UTC 2010 - cristian.rodriguez@opensuse.org + +- update to version 1.7.3 + * ares_init: Last, not first instance of domain or search should win + * Added ares_parse_mx_reply() + * Fix memory leak + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- c-ares-1.7.1.tar.bz2 New: ---- 0001-fix-memory-leak-in-ares_getnameinfo.patch c-ares-1.7.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libcares2.spec ++++++ --- /var/tmp/diff_new_pack.eHhaaj/_old 2010-09-24 00:25:32.000000000 +0200 +++ /var/tmp/diff_new_pack.eHhaaj/_new 2010-09-24 00:25:32.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package libcares2 (Version 1.7.1) +# spec file for package libcares2 (Version 1.7.3) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -21,8 +21,8 @@ %define pkg_name c-ares Name: libcares2 -Version: 1.7.1 -Release: 2 +Version: 1.7.3 +Release: 1 License: MIT License (or similar) BuildRoot: %{_tmppath}/%{name}-%{version}-build Group: Development/Libraries/C and C++ @@ -30,6 +30,7 @@ Source: http://daniel.haxx.se/projects/c-ares/%{pkg_name}-%{version}.tar.bz2 Source2: baselibs.conf BuildRequires: pkg-config +Patch: 0001-fix-memory-leak-in-ares_getnameinfo.patch %description c-ares is a C library that performs DNS requests and name resolves @@ -49,6 +50,7 @@ %prep %setup -q -n %{pkg_name}-%{version} +%patch -p1 %build %configure --enable-symbol-hiding --enable-nonblocking --enable-shared --disable-static --with-pic ++++++ 0001-fix-memory-leak-in-ares_getnameinfo.patch ++++++
From c93018913b91bf7c4699ff5badff5dcc91e8145f Mon Sep 17 00:00:00 2001 From: Andrew C. Morrow <andrew.c.morrow@gmail.com> Date: Wed, 16 Jun 2010 10:18:24 +0800 Subject: [PATCH] fix memory leak in ares_getnameinfo
--- ares_getnameinfo.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ares_getnameinfo.c b/ares_getnameinfo.c index fc4b7fa..8ae2f02 100644 --- a/ares_getnameinfo.c +++ b/ares_getnameinfo.c @@ -243,6 +243,7 @@ static void nameinfo_callback(void *arg, int status, int timeouts, niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, (char *)(host->h_name), service); + free(niquery); return; } /* We couldn't find the host, but it's OK, we can use the IP */ @@ -273,6 +274,7 @@ static void nameinfo_callback(void *arg, int status, int timeouts, } niquery->callback(niquery->arg, ARES_SUCCESS, niquery->timeouts, ipbuf, service); + free(niquery); return; } niquery->callback(niquery->arg, status, niquery->timeouts, NULL, NULL); -- 1.6.0.2 ++++++ c-ares-1.7.1.tar.bz2 -> c-ares-1.7.3.tar.bz2 ++++++ ++++ 2237 lines of diff (skipped) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de