Modify Prevent warning - case of 'RESOURCE_LEAK' : adjust malloc-free combination 12/164312/1 accepted/tizen/base/20171222.155030 submit/tizen_base/20171218.123350
authorSoonKyu Park <sk7.park@samsung.com>
Mon, 18 Dec 2017 11:42:42 +0000 (20:42 +0900)
committerSoonKyu Park <sk7.park@samsung.com>
Mon, 18 Dec 2017 11:42:42 +0000 (20:42 +0900)
Change-Id: If7b72745e0ef8fae3e3991e61a37ca26cde67723

lib/tagexts.c

index 563c1b4..95c5e07 100644 (file)
@@ -272,6 +272,7 @@ static char * strtolocale(char *str)
        locisutf8 = 0;
     if (locisutf8 == strisutf8) {
        wstr = _free(wstr);
+        cc = _free(cc);
        return str;
     }
     str = _free((char *)str);