[Tizen 4.0 TV] fix svace issue. 50/124350/1 accepted/tizen/unified/20170411.164458 submit/tizen/20170411.070901
authorHyihong Chae <hh.chae@samsung.com>
Tue, 11 Apr 2017 07:02:53 +0000 (16:02 +0900)
committerHyihong Chae <hh.chae@samsung.com>
Tue, 11 Apr 2017 07:04:05 +0000 (16:04 +0900)
Change-Id: Iab94290d2c126dd91eb7554e8cc11597b5cf3f5e
Signed-off-by: HyiHong Chae <hh.chae@samsung.com>
packaging/nfc-manager.spec
src/commonlib/net_nfc_util_openssl.c
src/manager/net_nfc_app_util.c

index 2694ad9c3ecb38b075e7f161a63359d3e149e6e9..322a6c855c40c0ac7a4e2684e1b17c15379493bb 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       nfc-manager
 Summary:    NFC framework manager
-Version:    0.1.159
+Version:    0.1.160
 Release:    0
 Group:      Network & Connectivity/NFC
 License:    Flora-1.1
index 2f9c336b5f926a7235ae12b87e0e1f6147008b2c..1dbbaa49a9fee71f38f0a784b0a23f036d8b1ed6 100755 (executable)
@@ -804,8 +804,10 @@ bool net_nfc_util_openssl_decode_base64(const char *buffer, uint8_t *result, uin
                BIO *b64, *bmem;
 
                b64 = BIO_new(BIO_f_base64());
-               if(b64 == NULL)
+               if (b64 == NULL) {
+                       _net_nfc_util_free_mem(temp);
                        return false;
+               }
 
                bmem = BIO_new_mem_buf((void *)buffer, length);
                if (new_line_char == false)
index 8028e9b4c66178171166587937f75feb12165d21..b8779ef7ac9cfcb297ec06cfa43d2bce271c3597 100755 (executable)
@@ -1083,8 +1083,10 @@ int net_nfc_app_util_decode_base64(const char *buffer, uint32_t buf_len, uint8_t
                uint32_t temp_len;
 
                b64 = BIO_new(BIO_f_base64());
-               if(b64 == NULL)
+               if (b64 == NULL) {
+                       _net_nfc_util_free_mem(temp);
                        return NET_NFC_ALLOC_FAIL;
+               }
 
                BIO_set_flags(b64, BIO_FLAGS_BASE64_NO_NL);
                bmem = BIO_new_mem_buf((void *)buffer, buf_len);