[WGID-148430, 149631] Fixed memory leak 02/101702/1 accepted/tizen/common/20161202.233454 accepted/tizen/mobile/20161205.001140 accepted/tizen/wearable/20161205.001159 submit/tizen/20161202.120240
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:36:00 +0000 (13:36 +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 42e0bfd..2840907 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 51d4ef7..4048508 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 8df660b..84398db 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)