Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4886822pxj; Wed, 12 May 2021 15:43:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAwLsGZnu5hG+4KYcrpmlLzEI9CA3SyNVcM3RoeNgRwEwb0ywIpmvU1cwP3RkgmQTeqpPi X-Received: by 2002:a17:906:d184:: with SMTP id c4mr7389395ejz.83.1620859392766; Wed, 12 May 2021 15:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620859392; cv=none; d=google.com; s=arc-20160816; b=DATSS/jF4rgGy++Y1f9qnNXTXd+kGf1Zk93aMyHavOVvkoH089pNAzgUO59apLrmJj 4TsTdbkZsEV2+M6q4gwHdMnCHyzmYwrwo4Fc++dR6Y+iD8Sa4yWR4y7lp4zwE7vvE8Vw FyIfUIakKOvYbhD/biT1DCJ0uJ+JMQiJY0r+CwFUG6V0HMvg0K2f5SPe22Etwx9+H4Mu uPl2x+mF4ZtKnySBTULZSYzXLTA+wcvPrBeGT9eYZ25KL9rTPJ6kIOUZmbYshA9d4V65 sMvfq6DADj9gKFepCpbe4EAQ8yPcs4BpWnnnsCPWSm6jU68bZJ3WqkvxSJZtfOU4gcfa SejQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id; bh=B/GZPIUqZYer7bv1+wQKeJuWybHV7OUAGMMw8IzAiDI=; b=qNgmHS6Z8wE2w4J4zhCgCXPftfJmJEZXaZ0O/aAzPWW8t6OZkytzEzjdApe7lF7q7W ljKZsmur2X4LDKSTHanW3basfoRryL1TXG/w/aOFuFIG/Ya2/FxemSyADjGhSc9Lbbd2 +H8kqrH2sZ5c8dGXiCRzDWlIdmzEzdj3UKiXaR5nZ35KwWlIzWOiC3UL+h2sdTRc1j4A tkAfLOSWzFOs1TdbN5Y2Et5tyxPXWEZzHsw5d0WXZr3YwyQz4EhzIh1dcYcF56vpSzK3 UYxGftBPCKYR+cfnrkZq/N/t0vV9NA23S8+PW+K+8OGE8uy40KdLv3VozkcyLJKMQQrT syag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si1081012eja.2.2021.05.12.15.42.50; Wed, 12 May 2021 15:43:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240682AbhELWmc (ORCPT + 99 others); Wed, 12 May 2021 18:42:32 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:53571 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443879AbhELWhF (ORCPT ); Wed, 12 May 2021 18:37:05 -0400 X-Originating-IP: 78.199.60.242 Received: from [192.168.1.150] (unknown [78.199.60.242]) (Authenticated sender: hadess@hadess.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 44A9C60005; Wed, 12 May 2021 22:35:55 +0000 (UTC) Message-ID: <6af830fc74d50c722ecb9855038a00bf6673d4e5.camel@hadess.net> Subject: Re: [PATCH 1/1] Fix various memory leaks From: Bastien Nocera To: Steve Grubb , linux-bluetooth@vger.kernel.org Date: Thu, 13 May 2021 00:35:54 +0200 In-Reply-To: <20210512133932.4e2b4bd0@ivy-bridge> References: <20210512133932.4e2b4bd0@ivy-bridge> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.1 (3.40.1-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Wed, 2021-05-12 at 13:39 -0400, Steve Grubb wrote: > diff --git a/obexd/plugins/filesystem.c b/obexd/plugins/filesystem.c > index 09bff8ad0..44e3cf3d2 100644 > --- a/obexd/plugins/filesystem.c > +++ b/obexd/plugins/filesystem.c > @@ -415,7 +415,7 @@ static void *capability_open(const char *name, > int oflag, mode_t mode, >                         goto fail; >                 } >   > -               object->buffer = g_string_new(buf); > +               object->buffer = buf; >   >                 if (size) >                         *size = object->buffer->len; Pretty certain this is wrong. It might be best to split the patch up into its individual parts so it's easier to merge the non-broken ones.