All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org, kamil.konieczny@linux.intel.com
Subject: [igt-dev] [i-g-t] tests/kms_color: Fix memory leaks
Date: Wed,  6 Jul 2022 09:18:46 +0530	[thread overview]
Message-ID: <20220706034846.441338-1-bhanuprakash.modem@intel.com> (raw)

Free allocated memory before return.

Fixes: d61e4598
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/kms_color.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/kms_color.c b/tests/kms_color.c
index 0b03fb9a..a9d55d44 100644
--- a/tests/kms_color.c
+++ b/tests/kms_color.c
@@ -427,13 +427,14 @@ static bool test_pipe_legacy_gamma_reset(data_t *data,
 			   lut[i].blue == 0xffff);
 	drmModeFreePropertyBlob(blob);
 
+end:
 	igt_plane_set_fb(primary, NULL);
 	igt_output_set_pipe(output, PIPE_NONE);
 	igt_display_commit(&data->display);
 
 	free_lut(degamma_linear);
 	free_lut(gamma_zero);
-end:
+
 	return ret;
 }
 
-- 
2.35.1

             reply	other threads:[~2022-07-06  3:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-06  3:48 Bhanuprakash Modem [this message]
2022-07-06  4:09 ` [igt-dev] ✗ GitLab.Pipeline: warning for tests/kms_color: Fix memory leaks Patchwork
2022-07-06  4:29 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-07-06  6:23 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-07-06  8:35 ` [igt-dev] [i-g-t] " Kamil Konieczny
2022-07-06  9:32 ` [igt-dev] [i-g-t V2] " Bhanuprakash Modem
2022-07-06 10:26   ` Kamil Konieczny
2022-07-06 10:51 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_color: Fix memory leaks (rev2) Patchwork
2022-07-06 14:23 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20220706034846.441338-1-bhanuprakash.modem@intel.com \
    --to=bhanuprakash.modem@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.