From: John Kacur <jkacur@redhat.com>
To: Daniel Wagner <daniel.wagner@siemens.com>
Cc: linux-rt-users@vger.kernel.org, Clark Williams <williams@redhat.com>
Subject: Re: [PATCH 3/4] deadline_test: Free allocated resources at exit
Date: Fri, 5 Apr 2019 18:29:13 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.21.1904051828530.8480@planxty> (raw)
In-Reply-To: <20190312172436.18314-4-daniel.wagner@siemens.com>
On Tue, 12 Mar 2019, Daniel Wagner wrote:
> Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
> ---
> src/sched_deadline/deadline_test.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/sched_deadline/deadline_test.c b/src/sched_deadline/deadline_test.c
> index 1b72c6097a87..04984d997f58 100644
> --- a/src/sched_deadline/deadline_test.c
> +++ b/src/sched_deadline/deadline_test.c
> @@ -2092,8 +2092,12 @@ int main (int argc, char **argv)
> printf("\n");
> }
>
> - if (!setcpu_buf)
> + if (setcpu_buf)
> free(setcpu_buf);
> + free(thread);
> + free(sched_data);
> +
> + CPU_FREE(cpusetp);
>
> return 0;
> }
> --
> 2.20.1
>
>
Signed-off-by: John Kacur <jkacur@redhat.com>
next prev parent reply other threads:[~2019-04-05 16:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-12 17:24 [PATCH 0/4] rt-tests bug fixes Daniel Wagner
2019-03-12 17:24 ` [PATCH 1/4] cyclicdeadline: Fix stack corruption Daniel Wagner
2019-04-05 16:28 ` John Kacur
2019-03-12 17:24 ` [PATCH 2/4] deadline_test: " Daniel Wagner
2019-04-05 16:27 ` John Kacur
2019-03-12 17:24 ` [PATCH 3/4] deadline_test: Free allocated resources at exit Daniel Wagner
2019-04-05 16:29 ` John Kacur [this message]
2019-03-12 17:24 ` [PATCH 4/4] cyclicdeadline: " Daniel Wagner
2019-04-05 16:31 ` John Kacur
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=alpine.LFD.2.21.1904051828530.8480@planxty \
--to=jkacur@redhat.com \
--cc=daniel.wagner@siemens.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=williams@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox