Donot assign NULL after g_free to local pointer 91/244491/1
authorNishant Chaprana <n.chaprana@samsung.com>
Sun, 20 Sep 2020 10:42:08 +0000 (16:12 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Sun, 20 Sep 2020 10:42:08 +0000 (16:12 +0530)
Change-Id: I761cb09fd23530e7a3a28d8c9049018cad1a79af
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/capi-network-connection.spec
src/connection.c

index dcdb33eb9fc9580a4c04dbcb5d19f3af61564280..a4bb68fe92a6ecca81361bd5fe2a95f2b0508669 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-connection
 Summary:       Network Connection library in TIZEN C API
-Version:       1.0.120
+Version:       1.0.121
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index f1fb3d489f5f09d8a5a85e4c5d11eb6817860b2b..9c14d5f2f54cd8b855f3bcb48b72278760809d1f 100755 (executable)
@@ -211,7 +211,6 @@ EXPORT_API int connection_destroy(connection_h connection)
        _connection_libnet_deinit(connection, (conn_handle_list == NULL));
 
        g_free(connection);
-       connection = NULL;
 
        CONN_UNLOCK;
        return CONNECTION_ERROR_NONE;