Ulf Magnusson
18004e6f26
kconfig: Fix expr_free() E_NOT leak
...
[ Upstream commit 5b1374b3b3c2fc4f63a398adfa446fb8eff791a4 ]
Only the E_NOT operand and not the E_NOT node itself was freed, due to
accidentally returning too early in expr_free(). Outline of leak:
switch (e->type) {
...
case E_NOT:
expr_free(e->left.expr);
return;
...
}
*Never reached, 'e' leaked*
free(e);
Fix by changing the 'return' to a 'break'.
Summary from Valgrind on 'menuconfig' (ARCH=x86) before the fix:
LEAK SUMMARY:
definitely lost: 44,448 bytes in 1,852 blocks
...
Summary after the fix:
LEAK SUMMARY:
definitely lost: 1,608 bytes in 67 blocks
...
Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-26 11:02:08 +02:00
..
2017-08-10 01:01:03 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-23 19:58:17 +01:00
2017-11-02 11:10:55 +01:00
2018-04-26 11:02:08 +02:00
2017-03-28 16:16:52 +02:00
2018-02-07 11:12:18 -08:00
2018-02-13 10:19:46 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-23 14:17:38 -06:00
2016-12-11 22:30:10 +01:00
2016-04-06 14:06:48 +01:00
2016-12-12 18:55:06 -08:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-03 11:49:06 +01:00
2017-10-03 17:54:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:06 +01:00
2017-11-02 11:10:55 +01:00
2016-10-11 15:06:30 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-07 11:12:17 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-07-07 15:09:09 -07:00
2017-05-14 11:20:44 +09:00
2017-08-08 11:09:31 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:33 +01:00
2017-11-02 11:10:55 +01:00
2016-02-26 15:30:20 +00:00
2017-10-13 16:18:32 -07:00
2018-03-24 11:01:29 +01:00
2018-02-25 11:07:58 +01:00
2017-11-02 11:10:55 +01:00
2017-11-06 11:46:42 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-15 10:54:38 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:23:04 +01:00
2018-03-15 10:54:33 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-03-13 09:40:28 -07:00
2017-05-14 11:20:44 +09:00
2017-03-11 11:13:38 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-03-24 20:51:49 -04:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-02-10 12:43:47 +11:00
2016-11-14 11:11:51 +11:00
2017-10-03 17:54:23 -07:00
2017-09-08 10:02:55 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-06 08:42:34 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00