diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-25 07:03:24 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-27 07:03:39 +0900 |
commit | d7371971546e843efd5dea059f246bfbb8eeee70 (patch) | |
tree | 6e51115d3b054834e3dfa77d14a739794b4d8576 | |
parent | 89665d0920ec141f49bf3c71d3a055ec33c26adf (diff) | |
download | systemd-d7371971546e843efd5dea059f246bfbb8eeee70.tar.gz |
udev-event: fix memleak in udev_event
The leak was introduced by 29448498c724da7ade1b5efb20d7472c1b128d2c.
-rw-r--r-- | src/udev/udev-event.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index 71031fec78..4dcfe87cff 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -66,6 +66,7 @@ void udev_event_unref(struct udev_event *event) { sd_netlink_unref(event->rtnl); while ((p = hashmap_steal_first_key(event->run_list))) free(p); + hashmap_free(event->run_list); hashmap_free_free_free(event->seclabel_list); free(event->program_result); free(event->name); |