rpcb_clnt.c (fixed): Eliminate double frees in delete_cache() (RHEL-11183)
Signed-off-by: Steve Dickson <steved@redhat.com> Resolves: RHEL-11183
This commit is contained in:
parent
8782ffd9bc
commit
bef7b741bc
23
libtirpc-1.3.3-null-ptrs-not-reused-fixed.patch
Normal file
23
libtirpc-1.3.3-null-ptrs-not-reused-fixed.patch
Normal file
@ -0,0 +1,23 @@
|
||||
commit 6951a9c3139c9c7dbb0bdae70737996011fc7a37
|
||||
Author: Herb Wartens <wartens2@llnl.gov>
|
||||
Date: Mon Mar 18 11:07:15 2024 -0400
|
||||
|
||||
rpcb_clnt.c: memory leak in destroy_addr
|
||||
|
||||
Piece was dropped from original fix.
|
||||
|
||||
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2225226
|
||||
Signed-off-by: Steve Dickson <steved@redhat.com>
|
||||
|
||||
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,7 +2,7 @@
|
||||
|
||||
Name: libtirpc
|
||||
Version: 1.3.3
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
Summary: Transport Independent RPC Library
|
||||
License: SISSL and BSD
|
||||
URL: http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary
|
||||
@ -30,6 +30,7 @@ Patch003: libtirpc-1.3.3-dos-sleep.patch
|
||||
Patch004: libtirpc-1.3.3-null-ptrs-not-reused.patch
|
||||
Patch005: libtirpc-1.3.3-gssd-context-creation.patch
|
||||
Patch006: libtirpc-1.3.3-double-free.patch
|
||||
Patch007: libtirpc-1.3.3-null-ptrs-not-reused-fixed.patch
|
||||
|
||||
%description
|
||||
This package contains SunLib's implementation of transport-independent
|
||||
@ -130,6 +131,9 @@ mv %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/man3t
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Tue Mar 19 2024 Steve Dickson <steved@redhat.com> - 1.3.3-8
|
||||
- rpcb_clnt.c (fixed): Eliminate double frees in delete_cache() (RHEL-11183)
|
||||
|
||||
* Wed Mar 13 2024 Steve Dickson <steved@redhat.com> - 1.3.3-7
|
||||
- exception build (RHEL-11183)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user