Fix the memory leak 85/260985/1 submit/tizen/20210712.235633
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 8 Jul 2021 05:43:35 +0000 (14:43 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 8 Jul 2021 05:43:35 +0000 (14:43 +0900)
Change-Id: Ic0c45298b82d7105ac45b2cbba1470a31c6de857
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
tests/test/uat-detections.c

index 9227f115a1668c390663d5fe89e24a0a7e0a9a86..65bfd0b60f55fc276cce761ca522447348e1bad9 100755 (executable)
@@ -236,6 +236,8 @@ void _sensor_location_detected_cb(int result, ua_monitor_h monitor,
        }
        msg("Location distance: %d coordinates x: %d y: %d z: %d",
                                                distance, x, y, z);
+
+       g_free(service_name);
 }
 
 void __ua_test_scan_completed_cb(ua_active_scan_type_e result,