Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp940148ybk; Fri, 15 May 2020 18:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1/5ZlNcRIbpqrbt75UT6fzK4+BaFhB1+0Qd+sTmrvfAYzQPGiYUPonYlDXYkNATNLWN5H X-Received: by 2002:a50:9b0f:: with SMTP id o15mr5519172edi.325.1589592519018; Fri, 15 May 2020 18:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589592519; cv=none; d=google.com; s=arc-20160816; b=eNatXTkdoRFCEA0nSmjzu30u9wqwGb3O3vsOzHK1vyFETelMbwX5jCgmunNGrtoe4b zHNf/aIGE2+XD+EHF9J9fKuslW3IBy+hgFIrnjCmRgCpjAbMiLr3YI99dvMyaWzeL+v8 3J/Os7+FnV5MFAHPEZj62H10gGDw2BXYWTcBcmyYituCg5aT8AFl3B9lNOpJN/mo79/Q E3czlmN0WtyT2sf/HbX0XjsBaeNFszaVUAP0GV+BPrZRaMdgC4gfofBw/fCgS88uvHLj t753gcLi31h51qF/8r/Z3klidbamPdmURDIVz78L3WhrejJD/G9/sPRRLhtYFgEzlprC Yp7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=uHqtVneXC/6dmp2Tk4HXBNaDL+ycRwNojE9hhrF/an0=; b=zIWI8bZZO6y73roG0Gmgy7TH0whcEGT8uqDDGn57bxU32VQuaBMrSeIjfK2zUG2PRa IJ11cev38elvYxP2Fj4KFM5nCN449DD98QwPfV5ni2L9FVYO5NwsKXOqX+hLdso5Ulpt sWt//ZNP9Zpzx9boW5mvLOluFD2UCaYJZ5T18I9GEY3Lr/tov3fFr7N3/G9WIgHtasDC Cyg5pFUfFrfQ7PWhGuHn0EMyYCLJLf9z1Oy1lZ0EC3rx2hV4ZYIV1jXkKmJ66kvvuBH2 mMcXNX568/4mypHuOYugeQzRwM0aVn4OKO88ezXAEw2m+bw6n6PSYGcEPH2Yx5aUb1I+ lKNg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj17si2106416edb.556.2020.05.15.18.27.53; Fri, 15 May 2020 18:28:39 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726247AbgEPB1v (ORCPT + 99 others); Fri, 15 May 2020 21:27:51 -0400 Received: from mga14.intel.com ([192.55.52.115]:12009 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726223AbgEPB1v (ORCPT ); Fri, 15 May 2020 21:27:51 -0400 IronPort-SDR: tJV9AEzSqMRII4ONnFM3Y8YB72EnBIXYgk6tgscUxPyShgqTVzvBqAv/RGq/o70qmnvRdbq0n7 8XfRW/FxP3CQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2020 18:27:50 -0700 IronPort-SDR: j+WVl5cenW2Ncn3d9e4/t+cOxgzz0O2a7b/ACYjbiJg5E2qdiW/Sz9lJ+dZOroHrc7QKx1ssA9 C/6KKUbQtJDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,397,1583222400"; d="scan'208";a="307568631" Received: from bgi1-mobl2.amr.corp.intel.com ([10.252.132.104]) by FMSMGA003.fm.intel.com with ESMTP; 15 May 2020 18:27:50 -0700 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: inga.stotland@intel.com, brian.gix@intel.com Subject: [PATCH BlueZ v2 0/2] mesh: Valgrind Clean-up Date: Fri, 15 May 2020 18:27:40 -0700 Message-Id: <20200516012742.573151-1-brian.gix@intel.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org These two patches address all known outstanding valgrind issues with the mesh daemon. The first patch (1/2) fixes actual memory leaks that will compound over time. The second patch (2/2) fixes less critical warnings that some memory wasn't entirely freed before exiting. v2: Fixed checkpatch errors Brian Gix (2): mesh: Fix valgrind memory leaks mesh: Fix valgrind memory leak warnings mesh/agent.c | 1 + mesh/mesh-config-json.c | 16 ++++++++-------- mesh/mesh.c | 9 ++++++++- mesh/net-keys.c | 6 ++++++ mesh/net-keys.h | 1 + mesh/net.c | 12 +++++++++++- mesh/net.h | 3 ++- mesh/node.c | 1 + 8 files changed, 38 insertions(+), 11 deletions(-) -- 2.25.4