diff -Nru systemd-204/debian/changelog systemd-204/debian/changelog --- systemd-204/debian/changelog 2018-02-01 12:53:08.000000000 +0000 +++ systemd-204/debian/changelog 2018-04-03 18:27:52.000000000 +0000 @@ -1,3 +1,10 @@ +systemd (204-5ubuntu20.28) trusty; urgency=medium + + * logind: fix memleaks in session's free path and cgmanager glue code + (LP: #1750013) + + -- Guilherme G. Piccoli Tue, 03 Apr 2018 13:38:08 +0000 + systemd (204-5ubuntu20.26) trusty-security; urgency=medium * SECURITY UPDATE: access to automounted volumes can lock up diff -Nru systemd-204/debian/patches/logind-fix-small-memleaks.patch systemd-204/debian/patches/logind-fix-small-memleaks.patch --- systemd-204/debian/patches/logind-fix-small-memleaks.patch 1970-01-01 00:00:00.000000000 +0000 +++ systemd-204/debian/patches/logind-fix-small-memleaks.patch 2018-04-03 18:27:52.000000000 +0000 @@ -0,0 +1,42 @@ +Description: logind - fix small memleaks + 1) Fix leak in session_free(), by freeing the reset_controllers ptr; + 2) Fix another leak in cgmanager glue code. +Author: Guilherme G. Piccoli +Bug-Ubuntu: https://launchpad.net/bugs/1750013 +Forwarded: not-needed +Last-Update: 2018-03-29 + +Index: systemd-204/src/login/logind-session.c +=================================================================== +--- systemd-204.orig/src/login/logind-session.c 2018-03-02 18:15:32.000417853 +0000 ++++ systemd-204/src/login/logind-session.c 2018-03-02 18:16:00.504417495 +0000 +@@ -93,6 +93,7 @@ + + free(s->cgroup_path); + strv_free(s->controllers); ++ strv_free(s->reset_controllers); + + free(s->tty); + free(s->display); +Index: systemd-204/src/shared/cgroup-util.c +=================================================================== +--- systemd-204.orig/src/shared/cgroup-util.c 2018-03-02 18:15:32.000417853 +0000 ++++ systemd-204/src/shared/cgroup-util.c 2018-03-02 18:15:31.996417853 +0000 +@@ -44,7 +44,7 @@ + _cleanup_free_ char *fs = NULL; + FILE *f; + int r; +- char *value = NULL; ++ _cleanup_free_ char *value = NULL; + char *template = NULL; + int fd; + +@@ -111,7 +111,7 @@ + _cleanup_free_ char *fs = NULL; + FILE *f; + int r; +- char *value = NULL; ++ _cleanup_free_ char *value = NULL; + char *template = NULL; + int fd; + diff -Nru systemd-204/debian/patches/series systemd-204/debian/patches/series --- systemd-204/debian/patches/series 2018-02-01 12:45:35.000000000 +0000 +++ systemd-204/debian/patches/series 2018-04-03 18:27:52.000000000 +0000 @@ -40,3 +40,4 @@ deputy_cgroup.patch do-not-create-run-nologin.patch CVE-2018-1049.patch +logind-fix-small-memleaks.patch