eeze_sensor: Don't free the object we want to return asynchronously

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>
This commit is contained in:
Daniel Willmann 2013-03-22 17:30:10 +00:00
parent c76440d55e
commit 0bbd944672
1 changed files with 0 additions and 1 deletions

View 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;
}