fix memory leak in destroy_addr
This commit is contained in:
parent
e2b90a69ba
commit
288c8cc7da
27
backport-fix-memory-leak-in-destroy_addr.patch
Normal file
27
backport-fix-memory-leak-in-destroy_addr.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 6951a9c3139c9c7dbb0bdae70737996011fc7a37 Mon Sep 17 00:00:00 2001
|
||||
From: Herb Wartens <wartens2@llnl.gov>
|
||||
Date: Mon, 18 Mar 2024 11:07:15 -0400
|
||||
Subject: [PATCH] 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>
|
||||
---
|
||||
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);
|
||||
--
|
||||
1.8.3.1
|
||||
@ -1,11 +1,12 @@
|
||||
Name: libtirpc
|
||||
Version: 1.3.4
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Transport-independent RPC library
|
||||
License: SISSL and BSD
|
||||
URL: http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary
|
||||
Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2
|
||||
Patch0: 0001-update-libtirpc-to-enable-tcp-port-listening.patch
|
||||
Patch1: backport-fix-memory-leak-in-destroy_addr.patch
|
||||
BuildRequires: automake autoconf libtool pkgconfig krb5-devel
|
||||
|
||||
%description
|
||||
@ -59,6 +60,12 @@ mv %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/man3t
|
||||
%{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Thu May 09 2024 zhangyaqi <zhangyaqi@kylinos.cn> - 1.3.4-2
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC: fix memory leak in destroy_addr
|
||||
|
||||
* Tue Dec 26 2023 gaihuiying <eaglegai@163.com> - 1.3.4-1
|
||||
- Type:requirements
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user