mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-05 05:01:29 +00:00
kdbus: make sure we never invoke free() on an uninitialized pointer on OOM
This commit is contained in:
@@ -1411,7 +1411,7 @@ int bus_kernel_open_bus_fd(const char *bus, char **path) {
|
||||
}
|
||||
|
||||
int bus_kernel_create_endpoint(const char *bus_name, const char *ep_name, char **ep_path) {
|
||||
_cleanup_free_ char *path;
|
||||
_cleanup_free_ char *path = NULL;
|
||||
struct kdbus_cmd_make *make;
|
||||
struct kdbus_item *n;
|
||||
size_t size;
|
||||
|
||||
Reference in New Issue
Block a user