Linux IIO development
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: zhangjiao2 <zhangjiao2@cmss.chinamobile.com>
Cc: lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iio: event_monitor: Fix missing free in main
Date: Sat, 7 Sep 2024 16:45:16 +0100	[thread overview]
Message-ID: <20240907164516.5990ac46@jic23-huawei> (raw)
In-Reply-To: <20240904080533.104279-1-zhangjiao2@cmss.chinamobile.com>

On Wed,  4 Sep 2024 16:05:33 +0800
zhangjiao2 <zhangjiao2@cmss.chinamobile.com> wrote:

> From: zhang jiao <zhangjiao2@cmss.chinamobile.com>
> 
> Free string allocated by asprintf().
> 
> Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Applied, but probably now 6.13 material

Thanks,

Jonathan

> ---
>  tools/iio/iio_event_monitor.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c
> index 8073c9e4fe46..d0b8e484826d 100644
> --- a/tools/iio/iio_event_monitor.c
> +++ b/tools/iio/iio_event_monitor.c
> @@ -449,6 +449,7 @@ int main(int argc, char **argv)
>  		enable_events(dev_dir_name, 0);
>  
>  	free(chrdev_name);
> +	free(dev_dir_name);
>  
>  	return ret;
>  }


      reply	other threads:[~2024-09-07 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-04  8:05 [PATCH] iio: event_monitor: Fix missing free in main zhangjiao2
2024-09-07 15:45 ` Jonathan Cameron [this message]

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=20240907164516.5990ac46@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zhangjiao2@cmss.chinamobile.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