* [PATCH] rpcb_clnt.c: memory leak in destroy_addr
@ 2024-03-18 15:11 Steve Dickson
2024-03-18 20:40 ` Steve Dickson
0 siblings, 1 reply; 2+ messages in thread
From: Steve Dickson @ 2024-03-18 15:11 UTC (permalink / raw)
To: Linux NFS Mailing list
From: Herb Wartens <wartens2@llnl.gov>
Piece was dropped from original fix.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2225226
Signed-off-by: Steve Dickson <steved@redhat.com>
---
src/rpcb_clnt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/rpcb_clnt.c b/src/rpcb_clnt.c
index 68fe69a..d909efc 100644
--- a/src/rpcb_clnt.c
+++ b/src/rpcb_clnt.c
@@ -121,6 +121,7 @@ destroy_addr(addr)
free(addr->ac_taddr->buf);
addr->ac_taddr->buf = NULL;
}
+ free(addr->ac_taddr);
addr->ac_taddr = NULL;
}
free(addr);
--
2.44.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rpcb_clnt.c: memory leak in destroy_addr
2024-03-18 15:11 [PATCH] rpcb_clnt.c: memory leak in destroy_addr Steve Dickson
@ 2024-03-18 20:40 ` Steve Dickson
0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2024-03-18 20:40 UTC (permalink / raw)
To: Linux NFS Mailing list
On 3/18/24 11:11 AM, Steve Dickson wrote:
> From: Herb Wartens <wartens2@llnl.gov>
>
> Piece was dropped from original fix.
>
> Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2225226
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed... (tag: libtirpc-1-3-5-rc3)
steved.
> ---
> src/rpcb_clnt.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/rpcb_clnt.c b/src/rpcb_clnt.c
> index 68fe69a..d909efc 100644
> --- a/src/rpcb_clnt.c
> +++ b/src/rpcb_clnt.c
> @@ -121,6 +121,7 @@ destroy_addr(addr)
> free(addr->ac_taddr->buf);
> addr->ac_taddr->buf = NULL;
> }
> + free(addr->ac_taddr);
> addr->ac_taddr = NULL;
> }
> free(addr);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-18 20:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-18 15:11 [PATCH] rpcb_clnt.c: memory leak in destroy_addr Steve Dickson
2024-03-18 20:40 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox