mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03:00
kdbus: make sure we never invoke free() on an uninitialized pointer on OOM
This commit is contained in:
parent
c7eff5ec06
commit
8e00bfc234
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user