memory freeing necessary?

Andre Puschmann andre.puschmann at stud.tu-ilmenau.de
Fri Jul 21 04:48:47 PDT 2006


hi folks,
i am using hal in an application to figure out if the system supports
hibernate/suspend.

i had a look at lshal.c and hal_get_property.c to figure out how all the
hal and dbus stuff works and i am wondering about how error handling
(e.g. freeing memory) is being done.
if for instance libhal_ctx_init() fails (if hald isn't running) isn't it
necessary to free hal_ctx or dbusConnection in order to avoid a memory leak?

regards
andre



More information about the hal mailing list