Ulf Magnusson 5b1374b3b3 kconfig: Fix expr_free() E_NOT leak
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>
2018-01-22 00:49:27 +09:00
..
2017-11-14 18:25:40 -08:00
2017-03-28 16:16:52 +02:00
2017-11-17 17:45:29 -08:00
2011-08-31 16:12:17 +02:00
2012-06-27 12:44:29 -07:00
2017-11-17 17:45:29 -08:00
2017-11-17 17:45:29 -08:00
2017-11-25 08:06:30 -10:00
2017-11-14 18:25:40 -08:00
2017-11-17 17:45:29 -08:00
2017-11-17 17:45:29 -08:00
2017-11-17 17:45:29 -08:00
2017-11-17 17:45:29 -08:00
2014-08-20 16:03:45 +02:00