From: Enlightenment S. <no-...@en...> - 2008-11-15 01:26:29
|
Log: leak--! Author: raster Date: 2008-11-14 17:26:20 -0800 (Fri, 14 Nov 2008) New Revision: 37645 Modified: trunk/e/src/bin/e_fm_main.c Modified: trunk/e/src/bin/e_fm_main.c =================================================================== --- trunk/e/src/bin/e_fm_main.c 2008-11-15 00:53:22 UTC (rev 37644) +++ trunk/e/src/bin/e_fm_main.c 2008-11-15 01:26:20 UTC (rev 37645) @@ -434,12 +434,12 @@ _e_dbus_cb_dev_add(void *data, DBusMessage *msg) { DBusError err; - char *udi; + char *udi = NULL; int ret; dbus_error_init(&err); dbus_message_get_args(msg, &err, DBUS_TYPE_STRING, &udi, DBUS_TYPE_INVALID); - udi = strdup(udi); + if (!udi) return; // printf("DB DEV+: %s\n", udi); ret = e_hal_device_query_capability(_e_dbus_conn, udi, "storage", _e_dbus_cb_store_is, strdup(udi)); |