[WGID-148430, 149631] Fixed memory leak 01/101701/1 accepted/tizen/3.0/common/20161205.092022 accepted/tizen/3.0/mobile/20161205.000154 accepted/tizen/3.0/wearable/20161205.000239 submit/tizen_3.0/20161202.115309
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 2 Dec 2016 04:34:46 +0000 (13:34 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 2 Dec 2016 04:35:27 +0000 (13:35 +0900)
Change-Id: I89bc6ccc10dcc85ea9a36824a45b20dc9c998efe
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/capi-network-http.spec
src/http_transaction.c
test/http_test.c

index 42e0bfd2c4b63e3c5630c668a99fe7fcc3e03666..284090755d0e3954afc32ec5225061201679abb0 100644 (file)
@@ -1,6 +1,6 @@
 Name:          capi-network-http
 Summary:       Http Framework
-Version:       0.0.15
+Version:       0.0.16
 Release:       0
 Group:         System/Network
 License:       Apache-2.0
index 51d4ef7c065bffd73759bb408e372229ae8fed49..40485087a3687136e3273800d9a05b12f73241dd 100644 (file)
@@ -381,6 +381,7 @@ int _transaction_submit(gpointer user_data)
                        curl_easy_setopt(transaction->easy_handle, CURLOPT_COPYPOSTFIELDS, NULL);
                        DBG("Set the Content-Length(%d).", content_len);
                }
+               free(field_value);
        } else {
                DBG("The Content-Length is not set.\n");
        }
index 8df660b1df923d89a7481664c831d7764cfee5c5..84398db49cf03f22c06ac448e03e652cc6bf6274 100644 (file)
@@ -94,6 +94,9 @@ void __transaction_completed_cb(http_transaction_h transaction, void *user_data)
                _register_callbacks(http_auth_transaction);
                http_transaction_submit(http_auth_transaction);
        }
+
+       if (uri)
+               free(uri);
 }
 
 void __transaction_aborted_cb(http_transaction_h transaction, int reason, void *user_data)