From 3c011185d537b03026452a28022d61d8377ce63a Mon Sep 17 00:00:00 2001 From: "jk7744.park" Date: Sat, 24 Oct 2015 15:55:10 +0900 Subject: [PATCH] tizen 2.4 release --- LICENSE.mit | 21 +++++++++++++++++++++ acountry.c | 6 ++++++ packaging/c-ares.spec | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 LICENSE.mit diff --git a/LICENSE.mit b/LICENSE.mit new file mode 100644 index 0000000..c6e52bc --- /dev/null +++ b/LICENSE.mit @@ -0,0 +1,21 @@ +COPYRIGHT AND PERMISSION NOTICE + +Copyright (c) + +All rights reserved. + +Permission to use, copy, modify, and distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright +notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of a copyright holder shall not +be used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization of the copyright holder. diff --git a/acountry.c b/acountry.c index 210ef84..1009dfa 100644 --- a/acountry.c +++ b/acountry.c @@ -562,6 +562,8 @@ static void find_country_from_cname(const char *cname, struct in_addr addr) if ((z0 != 'z' && z1 != 'z') || dot != cname+4) { printf("Unexpected CNAME %s (ver_1)\n", cname); + if (ccopy) + free(ccopy); return; } } @@ -572,12 +574,16 @@ static void find_country_from_cname(const char *cname, struct in_addr addr) if (z0 != 'z' && z1 != 'z') { printf("Unexpected CNAME %s (ver_2)\n", cname); + if (ccopy) + free(ccopy); return; } } else { printf("Unexpected CNAME %s (ver?)\n", cname); + if (ccopy) + free(ccopy); return; } diff --git a/packaging/c-ares.spec b/packaging/c-ares.spec index f385abd..50bdbf7 100644 --- a/packaging/c-ares.spec +++ b/packaging/c-ares.spec @@ -1,6 +1,6 @@ Name: c-ares Summary: library for asynchronous name resolves (development files) -Version: 1.10.0_4 +Version: 1.10.0_5 Release: 1 Group: System/Libraries License: MIT -- 2.7.4