Skip to content

Commit

Permalink
Comment the recent dbus change so there is no confusion about
Browse files Browse the repository at this point in the history
when the variables get freed.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Oct 25, 2013
1 parent 37f34a2 commit bc0421a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded-dbus.c
Expand Up @@ -75,7 +75,7 @@ static DBusHandlerResult msg_handler(DBusConnection *const connection, DBusMessa

if(!strcmp(member, USB_MODE_STATE_REQUEST))
{
mode = strdup(get_usb_mode());
mode = strdup(get_usb_mode()); /* freed at the end after sending the message */

if((reply = dbus_message_new_method_return(msg)))
dbus_message_append_args (reply, DBUS_TYPE_STRING, &mode, DBUS_TYPE_INVALID);
Expand Down

0 comments on commit bc0421a

Please sign in to comment.