From 3bed5265f9c792edfcd593eeaa93675711e5e264 Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Mon, 23 Jul 2018 11:41:17 +0100 Subject: Cherrypick master patches up to 20th of July 2018. LP: #1781427 --- ...ity-Resource-leak-fix-return-without-free.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 debian/patches/0030-Coverity-Resource-leak-fix-return-without-free.patch (limited to 'debian/patches/0030-Coverity-Resource-leak-fix-return-without-free.patch') diff --git a/debian/patches/0030-Coverity-Resource-leak-fix-return-without-free.patch b/debian/patches/0030-Coverity-Resource-leak-fix-return-without-free.patch new file mode 100644 index 00000000..dd7a10f7 --- /dev/null +++ b/debian/patches/0030-Coverity-Resource-leak-fix-return-without-free.patch @@ -0,0 +1,27 @@ +From 4a670aabdcf6b7870aaa0088574a62603bb22f31 Mon Sep 17 00:00:00 2001 +From: Anthony Youngman +Date: Fri, 15 Jun 2018 22:18:14 +0100 +Subject: [PATCH 30/40] Coverity: Resource leak: fix return without free + +Signed-off-by: Anthony Youngman +Signed-off-by: Jes Sorensen +--- + Assemble.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Assemble.c b/Assemble.c +index 5a907c14..0a7ab6f5 100644 +--- a/Assemble.c ++++ b/Assemble.c +@@ -281,6 +281,8 @@ static int select_devices(struct mddev_dev *devlist, + st->ss->free_super(st); + dev_policy_free(pol); + domain_free(domains); ++ if (tst) ++ tst->ss->free_super(tst); + return -1; + } + +-- +2.17.1 + -- cgit v1.2.3