aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/bench/sched-messaging.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-29 08:04:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-29 08:04:46 +0100
commit4d012040161cba054208555300d9fdf2b8925c34 (patch)
tree326f597177a377bc17b98e5e77d242a0ba4b042c /tools/perf/bench/sched-messaging.c
parentc4bc515d73b5201d30f78b935accdd9e3988f05e (diff)
parentd58071a8a76d779eedab38033ae4c821c30295a5 (diff)
Merge 5.16-rc3 into usb-next
We need the USB driver fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/bench/sched-messaging.c')
-rw-r--r--tools/perf/bench/sched-messaging.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c
index 488f6e6ba1a5..fa0ff4ce2b74 100644
--- a/tools/perf/bench/sched-messaging.c
+++ b/tools/perf/bench/sched-messaging.c
@@ -223,6 +223,8 @@ static unsigned int group(pthread_t *pth,
snd_ctx->out_fds[i] = fds[1];
if (!thread_mode)
close(fds[0]);
+
+ free(ctx);
}
/* Now we have all the fds, fork the senders */
@@ -239,6 +241,8 @@ static unsigned int group(pthread_t *pth,
for (i = 0; i < num_fds; i++)
close(snd_ctx->out_fds[i]);
+ free(snd_ctx);
+
/* Return number of children to reap */
return num_fds * 2;
}