public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfsdcld:Fix a memory leak
@ 2025-05-03  5:33 597607025
  2025-05-07 14:14 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: 597607025 @ 2025-05-03  5:33 UTC (permalink / raw)
  To: linux-nfs; +Cc: zhangyaqi

From: zhangyaqi <zhangyaqi@kylinos.cn>

Signed-off-by: zhangyaqi <zhangyaqi@kylinos.cn>
---
 utils/nfsdcld/nfsdcld.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/nfsdcld/nfsdcld.c b/utils/nfsdcld/nfsdcld.c
index f7737d92..8551dc97 100644
--- a/utils/nfsdcld/nfsdcld.c
+++ b/utils/nfsdcld/nfsdcld.c
@@ -822,6 +822,7 @@ main(int argc, char **argv)
 	evbase = event_base_new();
 	if (evbase == NULL) {
 		fprintf(stderr, "%s: unable to allocate event base.\n", argv[0]);
+		free(progname);
 		return 1;
 	}
 	xlog_syslog(0);
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nfsdcld:Fix a memory leak
  2025-05-03  5:33 [PATCH] nfsdcld:Fix a memory leak 597607025
@ 2025-05-07 14:14 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2025-05-07 14:14 UTC (permalink / raw)
  To: 597607025, linux-nfs; +Cc: zhangyaqi



On 5/3/25 1:33 AM, 597607025@qq.com wrote:
> From: zhangyaqi <zhangyaqi@kylinos.cn>
> 
> Signed-off-by: zhangyaqi <zhangyaqi@kylinos.cn>
Committed... (tag: nfs-utils-2-8-4-rc1)

steved.

> ---
>   utils/nfsdcld/nfsdcld.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/utils/nfsdcld/nfsdcld.c b/utils/nfsdcld/nfsdcld.c
> index f7737d92..8551dc97 100644
> --- a/utils/nfsdcld/nfsdcld.c
> +++ b/utils/nfsdcld/nfsdcld.c
> @@ -822,6 +822,7 @@ main(int argc, char **argv)
>   	evbase = event_base_new();
>   	if (evbase == NULL) {
>   		fprintf(stderr, "%s: unable to allocate event base.\n", argv[0]);
> +		free(progname);
>   		return 1;
>   	}
>   	xlog_syslog(0);


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-07 14:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-03  5:33 [PATCH] nfsdcld:Fix a memory leak 597607025
2025-05-07 14:14 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox