eeze_sensor: Don't free the object we want to return asynchronously
authorDaniel Willmann <d.willmann@samsung.com>
Fri, 22 Mar 2013 17:30:10 +0000 (17:30 +0000)
committerDaniel Willmann <d.willmann@samsung.com>
Fri, 22 Mar 2013 17:50:26 +0000 (17:50 +0000)
The event callback will take care of freeing the object.
This issue was found thanks to clangs -fsanitize=address option - coming
to a CI job near you.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
src/modules/eeze/sensor/fake/fake.c

index 2bb10c150f18813a6656eafae64b572da70b727c..6ebbd32d5ae0c0eb005fd4bb78f61b9cf6abdc6e 100644 (file)
@@ -137,7 +137,6 @@ fake_async_read(Eeze_Sensor_Type sensor_type, void *user_data EINA_UNUSED)
         free(obj);
         return EINA_FALSE;
      }
-   free(obj);
    return EINA_TRUE;
 }