Fix double free issue 98/234598/1 accepted/tizen/unified/20200602.133300 submit/tizen/20200601.000448
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 27 May 2020 09:05:29 +0000 (18:05 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 27 May 2020 09:05:37 +0000 (18:05 +0900)
'ap' is freed in __net_client_clear_cb_data()

Change-Id: I115e725799c99f56cedf0e2d25e38f918b801e6e

packaging/capi-network-wifi-manager.spec
src/network_internal.c
src/wifi_internal.c

index f1c71ab..12adec9 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-wifi-manager
 Summary:       Network Wi-Fi library in TIZEN C API
-Version:       1.0.49
+Version:       1.0.50
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index 64d9a28..08a9dc7 100755 (executable)
@@ -370,6 +370,7 @@ static void __net_client_clear_cb_data(net_event_info_s *client)
                        }
                }
                g_free(client->Data);
+               client->Data = NULL;
        }
        g_free(client);
 }
index e32322a..8e19805 100755 (executable)
@@ -524,7 +524,6 @@ static void __update_netlink_scan_profile_iterator(GSList *bss_list)
 
                bss_profile_iterator = g_slist_append(bss_profile_iterator,
                                        (net_profile_info_s *)profile);
-               g_free(ap);
        }
 }
 //LCOV_EXCL_STOP