kconfig: fix memory leak when EOF is encountered in quotation