From: David Goulet Date: Fri, 26 Oct 2012 15:23:15 +0000 (-0400) Subject: Fix: relayd trace file padding memleak X-Git-Tag: v2.1.0-rc6~18 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e986c7a156b09ae5b3333c5677a341cabf9e25d3;p=lttng-tools.git Fix: relayd trace file padding memleak Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 9e6d4bf9f..c09c0c525 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1176,6 +1176,8 @@ static int write_padding_to_file(int fd, uint32_t size) PERROR("write padding to file"); } + free(zeros); + end: return ret; }