From patchwork Mon Apr 29 07:07:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 13646394 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 353EBEAC2; Mon, 29 Apr 2024 07:07:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714374467; cv=none; b=AmCqFGPk8Somn1Pe6/d4m2QXakFw3DSXETxyyFyIYjHqM+lXACAe1vq2JXOwfMjCWYTxdo+arbKx5YZvMI6azYmzvW0TsCcxmRIL+u75CbT5wXla8+rwrmB/lphuVPTqdS6tnW9DWfcV4aTayzWCqp/OSPbgBTr6vhErCZ/kUQY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714374467; c=relaxed/simple; bh=LVrUZuxUgIT+CYnkgICftuNuFWG6dYfuFHCIXSxud5M=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mMX09tzGAVSLfPB40fN4Fqqgl64i1C4TH+feArGIvYks9EyDKNxtQRR1BygfL+U6wm1QCSwqsyD/JBeE26Ze2iuBpgO0BTdTaqHdMUv5KBXqlero1IQHwxed6O7W+N1TVzb+QPyZ0Wu3Zlt+LSKYVvRI90RmfyyVom5BL1wYEN0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EkmcVnXB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EkmcVnXB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AA10C113CD; Mon, 29 Apr 2024 07:07:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714374466; bh=LVrUZuxUgIT+CYnkgICftuNuFWG6dYfuFHCIXSxud5M=; h=From:To:Cc:Subject:Date:From; b=EkmcVnXB/s2TiVQaNvLjLtzId/VAzLOaOkGognuGN107Q/UENMkgI8KuxK78gbopj 7C0dLQeb+h/wmmpBwmEaDVgKx8P9yhLeUArWw9v12NDuYnz2ZtTl+VA7q3/p4fza52 yKmWlTeAZUsE7mpNQ54Qu0L7aP4HodKXb9zhjpledyL/ovzeenx979U1hJd69XOV+x KASrBz5vm/J6hHi8PgJYlBjNEvB4d7c0mMyBB7quwCJUr9juZHG63MVPcGFaILdRt/ LVnxlWHkefZAACKxRVwYyxhHewYva8HCN91oZ5jiLvQXceCUXS0dMKb1adIaBJJnzS I4uELshn1EpyA== From: Geliang Tang To: Andrii Nakryiko , Eduard Zingerman , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jakub Sitnicki Cc: Geliang Tang , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Geliang Tang Subject: [PATCH bpf-next 0/2] Free strdup memory in selftests Date: Mon, 29 Apr 2024 15:07:32 +0800 Message-Id: X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Geliang Tang Two fixes to free strdup memory in selftests to avoid memory leaks. Geliang Tang (2): selftests/bpf: Free strdup memory in test_sockmap selftests/bpf: Free strdup memory in veristat tools/testing/selftests/bpf/test_sockmap.c | 10 ++++++++-- tools/testing/selftests/bpf/veristat.c | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-)