From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17841 invoked by alias); 27 Nov 2008 07:27:15 -0000 Received: (qmail 17830 invoked by uid 22791); 27 Nov 2008 07:27:14 -0000 X-Spam-Check-By: sourceware.org Received: from ti-out-0910.google.com (HELO ti-out-0910.google.com) (209.85.142.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Nov 2008 07:26:39 +0000 Received: by ti-out-0910.google.com with SMTP id d10so588934tib.12 for ; Wed, 26 Nov 2008 23:26:37 -0800 (PST) Received: by 10.110.70.17 with SMTP id s17mr130363tia.11.1227770797049; Wed, 26 Nov 2008 23:26:37 -0800 (PST) Received: by 10.110.103.3 with HTTP; Wed, 26 Nov 2008 23:26:36 -0800 (PST) Message-ID: Date: Thu, 27 Nov 2008 18:24:00 -0000 From: teawater To: "Stan Shebs" Subject: [multiprocess RFA] Fix memory leak of focus_command Cc: "gdb-patches@sourceware.org" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_41792_32067909.1227770797019" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00727.txt.bz2 ------=_Part_41792_32067909.1227770797019 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 215 Hi Stan, I found that focus_command doesn't free current_itset before overwrite it. So I write a patch for it. 2008-11-27 Hui Zhu * infcmd.c (focus_command): Fix memory leak. Thanks, Hui ------=_Part_41792_32067909.1227770797019 Content-Type: text/plain; name=fix_focus_command_memory_leak.txt Content-Transfer-Encoding: base64 X-Attachment-Id: f_fo137vp00 Content-Disposition: attachment; filename=fix_focus_command_memory_leak.txt Content-length: 314 LS0tIGdkYi5vcmlnL2luZmNtZC5jCisrKyBnZGIvaW5mY21kLmMKQEAgLTIx OSw2ICsyMTksOCBAQAogICAgICAgcmV0dXJuOwogICAgIH0KIAorICBpZiAo Y3VycmVudF9pdHNldCkKKyAgICB4ZnJlZSAoY3VycmVudF9pdHNldCk7CiAg IGN1cnJlbnRfaXRzZXQgPSBpdHNldDsKIAogICAvKiBGb3Igbm93LCBzZXQg YSBjdXJyZW50IGV4ZWMgZnJvbSB0aGUgZmlyc3QgZWxlbWVudCBvZiB0aGUg Zm9jdXMK ------=_Part_41792_32067909.1227770797019--