From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755880AbcAHUoL (ORCPT ); Fri, 8 Jan 2016 15:44:11 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:34583 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbcAHUoJ (ORCPT ); Fri, 8 Jan 2016 15:44:09 -0500 Date: Fri, 8 Jan 2016 20:44:04 +0000 From: Chris Bainbridge To: yann.morin.1998@free.fr Cc: linux-kernel@vger.kernel.org, mmarek@suse.cz, bbarbulovski@gmail.com Subject: [PATCH] kconfig: fix qconf segfault by deleting heap objects Message-ID: <20160108204404.GA14615@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Debian stable (qt-4.8.6) 'make xconfig' intermittently fails due to qconf segfaulting at exit time in QXcbEventReader. The cause of this is destructors on the heap objects never being called, so fix this by properly deleting the heap objects before exit. Signed-off-by: Chris Bainbridge --- Trivial error, as described at https://forum.qt.io/topic/26658/solved-segfault-on-qapplication-exit --- scripts/kconfig/qconf.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 91b7e6fbc364..fc5555992220 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -1863,6 +1863,8 @@ int main(int ac, char** av) configSettings->endGroup(); delete configSettings; + delete v; + delete configApp; return 0; } -- 2.1.4