Fix memory leak of dbus service names

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-02-07 22:47:32 +00:00
parent a019ff453b
commit 33c1cd439b
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 0 deletions

View File

@ -207,6 +207,7 @@ cdbus_destroy(session_t *ps) {
log_error("Failed to release DBus name (%s).", err.message);
dbus_error_free(&err);
}
free(cd->dbus_service);
}
// Close and unref the connection