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 2bb10c1..6ebbd32 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;
 }