Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4886308pxj; Wed, 12 May 2021 15:42:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmQxAE/Q0wDey/259W+L8Kgoce5TcIqOzJrYxdtZOqfV83sr/sQ0sBgE7GwQ9hCXT5wOYA X-Received: by 2002:aa7:d594:: with SMTP id r20mr45443504edq.242.1620859342513; Wed, 12 May 2021 15:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620859342; cv=none; d=google.com; s=arc-20160816; b=ljOFBBU4nIA0+DQHHxAbXK7j3XIm+aCYPamPuEkXwhrU4mkOTMvpQ+2xkmeWQ3/Q73 XiLyodjDxLpVPADxu3yXpCxH4wy1l+TSsiwGsiaUzqamarm/8lBl3sPl+ZGSU26HjZL7 VgdzFu345WbULmBec95KL5qcDkpXgn0W7Kkl5Q5xkeoelhDIno/rqPemk47YPfeXyzlT AAvB5x7akP5LUWUx43ZuyzZ1jvRfc8FlcJU7IlMHRoepJaWudPe+A9XX/LwTcG90UwND SHGW6asO21aXfFwEEA6y4C9Vze0Ul/vC4K2/74h5t9ERvJ27xR1nXEdKVeUXchdc/cyZ eL9g== 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 :organization:message-id:subject:to:from:date:dkim-signature; bh=zmpVYh0nlS5zOA8MasiH/aAsbKCxqcrKieGO3ZPl4Ks=; b=YgDSq5g/OK7H/QjKk5iV4YGdIZWiFW6loQCNCodT20makOMqdatYRnkVbneeYGuxZJ nP4PdW44hnZ8jnI8nlsQ96kaUECBDYwpOwG7EbH5iJHcVodKadL5ZR6QVz20Aysw+uP4 9qpD+ELGhr5kM+5Xbyzvk9OM95xNQMwh7wAmCNlAb2MK7jJUo3E3O4/Hka50S0X2qTgn pK5QOpvqHh4tdI0GiB3CQ9fB+2HVV/aar2Vy2hidmkXjDFxIvYrbwwN4syWGjA24cUTZ IJZ5rFqccby7GZwqUXTGtWcWDeBvc2gCOx195Jhi5R3QyfTXBhvxUG6GZE6ea2VdlaqJ PQCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="TtT0m/bG"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si970213edx.424.2021.05.12.15.41.31; Wed, 12 May 2021 15:42:22 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="TtT0m/bG"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233125AbhELWk7 (ORCPT + 99 others); Wed, 12 May 2021 18:40:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:41842 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1391959AbhELVfO (ORCPT ); Wed, 12 May 2021 17:35:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620855236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zmpVYh0nlS5zOA8MasiH/aAsbKCxqcrKieGO3ZPl4Ks=; b=TtT0m/bGiPZNDR2DtxzJ/nu61Q8NfcxiLSi60IOL6wq9YWNh4Dggnax+xc0q8XPAaoShF3 kuTmA2GyUH/1QjQj56jLDeBDognBfWoCdfa0A1seDmhZd2PLWmk12R+s3Ka0oN/pVA0hhE IEFZ3OYZ1Wz5gmXtUJ6w0HWEvZ757HY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-466-WCNVdAIeMTyzSQ3RuoO02Q-1; Wed, 12 May 2021 17:33:45 -0400 X-MC-Unique: WCNVdAIeMTyzSQ3RuoO02Q-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 309AE1020C36 for ; Wed, 12 May 2021 21:33:45 +0000 (UTC) Received: from ivy-bridge (ovpn-112-130.rdu2.redhat.com [10.10.112.130]) by smtp.corp.redhat.com (Postfix) with ESMTP id D4CF360CC6 for ; Wed, 12 May 2021 21:33:44 +0000 (UTC) Date: Wed, 12 May 2021 17:34:11 -0400 From: Steve Grubb To: linux-bluetooth@vger.kernel.org Subject: [Bluez PATCH 0/6] Fix various memory leaks Message-ID: <20210512173411.134acc8e@ivy-bridge> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hello, Was checking the code view static analysis and found a number of leaks throughout the code. This patch should address most of what was discovered. Steve Grubb (6): Fix leak in mesh Fix leaks in obex Fix leaks in plugin Fix leaks in profiles Fix leaks in src Fix leaks in tools mesh/rpl.c | 4 +++- obexd/plugins/filesystem.c | 2 +- obexd/plugins/ftp.c | 8 ++++++-- obexd/plugins/messages-dummy.c | 1 + plugins/hostname.c | 3 +-- profiles/audio/avrcp.c | 4 +++- src/main.c | 1 + src/shared/shell.c | 1 + tools/mesh-cfgclient.c | 2 +- tools/mesh-gatt/gatt.c | 1 + tools/mesh-gatt/node.c | 12 +++++++++--- 11 files changed, 28 insertions(+), 11 deletions(-) -- 2.31.1