summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-bus/bus-kernel.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-02 20:36:58 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-02 20:38:00 +0200
commit8e00bfc234f43f49b16aa0124fb4b3f1c8eae4ef (patch)
tree505ed466290c07ec14ce49f1b43515298bdd7a36 /src/libsystemd/sd-bus/bus-kernel.c
parentc7eff5ec06c3025d1ef14f955c653259ae7c615b (diff)
kdbus: make sure we never invoke free() on an uninitialized pointer on OOM
Diffstat (limited to 'src/libsystemd/sd-bus/bus-kernel.c')
-rw-r--r--src/libsystemd/sd-bus/bus-kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
index 236e8787b7..0e74f9136a 100644
--- a/src/libsystemd/sd-bus/bus-kernel.c
+++ b/src/libsystemd/sd-bus/bus-kernel.c
@@ -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;