mirror of git://git.sysmocom.de/ofono
Free service data in service_reply
Avoid the memory leak of server_data.
This commit is contained in:
parent
e31d429dbe
commit
04fffa93a1
|
@ -533,7 +533,7 @@ static void check_service(DBusConnection *connection, const char *name,
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
dbus_pending_call_set_notify(call, service_reply, data, NULL);
|
dbus_pending_call_set_notify(call, service_reply, data, g_free);
|
||||||
|
|
||||||
dbus_pending_call_unref(call);
|
dbus_pending_call_unref(call);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue