From: "Grzegorzek, Dominik" <dominik.grzegorzek@intel.com>
To: "Piatkowski, Dominik Karol" <dominik.karol.piatkowski@intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH v2 i-g-t 1/1] tests/intel/xe_eudebug_online: Fix run_online_client memory leak
Date: Thu, 5 Dec 2024 10:42:51 +0000 [thread overview]
Message-ID: <feab9bb685f12a159c330a1974e0d919aee202b0.camel@intel.com> (raw)
In-Reply-To: <20241205102613.13524-2-dominik.karol.piatkowski@intel.com>
On Thu, 2024-12-05 at 11:26 +0100, Dominik Karol Piątkowski wrote:
> In run_online_client, buf is created by create_uc_buf, that calls
> intel_buf_create_full, that callocs and initializes it. This memory is
> never freed. Fix it by adding missing intel_buf_destroy.
>
> Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com>
> ---
> tests/intel/xe_eudebug_online.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/intel/xe_eudebug_online.c b/tests/intel/xe_eudebug_online.c
> index 750350556..bf53b44ce 100644
> --- a/tests/intel/xe_eudebug_online.c
> +++ b/tests/intel/xe_eudebug_online.c
> @@ -1132,6 +1132,8 @@ static void run_online_client(struct xe_eudebug_client *c)
> DRM_XE_DEBUG_METADATA_PROGRAM_MODULE,
> 2 * sizeof(*metadata));
>
> + intel_buf_destroy(buf);
> +
Acked-by: Dominik Grzegorzek <dominik.grzegorzek@intel.com>
Regards,
Dominik
> xe_eudebug_client_close_driver(c, fd);
> }
>
next prev parent reply other threads:[~2024-12-05 10:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 10:26 [PATCH v2 i-g-t 0/1] tests/intel/xe_eudebug_online: Fix run_online_client memory leak Dominik Karol Piątkowski
2024-12-05 10:26 ` [PATCH v2 i-g-t 1/1] " Dominik Karol Piątkowski
2024-12-05 10:42 ` Grzegorzek, Dominik [this message]
2024-12-06 0:39 ` ✗ Xe.CI.BAT: failure for tests/intel/xe_eudebug_online: Fix run_online_client memory leak (rev2) Patchwork
2024-12-06 0:47 ` ✓ i915.CI.BAT: success " Patchwork
2024-12-06 1:55 ` ✗ i915.CI.Full: failure " Patchwork
2024-12-06 2:30 ` ✗ Xe.CI.Full: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=feab9bb685f12a159c330a1974e0d919aee202b0.camel@intel.com \
--to=dominik.grzegorzek@intel.com \
--cc=dominik.karol.piatkowski@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox