mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +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) {
|
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_cmd_make *make;
|
||||||
struct kdbus_item *n;
|
struct kdbus_item *n;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user