mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
analyze: fix mem leak
Found with Coverity. Fixes: CID#1237756
This commit is contained in:
parent
b9289d4c6e
commit
0ee9613d98
Notes:
Lennart Poettering
2014-10-24 18:15:54 +02:00
Backport: bugfix
@ -848,7 +848,8 @@ static int list_dependencies(sd_bus *bus, const char *name) {
|
|||||||
char ts[FORMAT_TIMESPAN_MAX];
|
char ts[FORMAT_TIMESPAN_MAX];
|
||||||
struct unit_times *times;
|
struct unit_times *times;
|
||||||
int r;
|
int r;
|
||||||
const char *path, *id;
|
const char *id;
|
||||||
|
_cleanup_free_ char *path = NULL;
|
||||||
_cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
|
_cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
|
||||||
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
|
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||||
struct boot_times *boot;
|
struct boot_times *boot;
|
||||||
|
Loading…
Reference in New Issue
Block a user