!35 [sync] PR-34: fix memory leak in destroy_addr
From: @openeuler-sync-bot Reviewed-by: @zengwefeng Signed-off-by: @zengwefeng
This commit is contained in:
commit
7629ba2bce
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
|
Name: libtirpc
|
||||||
Version: 1.3.4
|
Version: 1.3.4
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Transport-independent RPC library
|
Summary: Transport-independent RPC library
|
||||||
License: SISSL and BSD
|
License: SISSL and BSD
|
||||||
URL: http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary
|
URL: http://git.linux-nfs.org/?p=steved/libtirpc.git;a=summary
|
||||||
Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2
|
Source0: http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2
|
||||||
Patch0: 0001-update-libtirpc-to-enable-tcp-port-listening.patch
|
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
|
BuildRequires: automake autoconf libtool pkgconfig krb5-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -59,6 +60,12 @@ mv %{buildroot}%{_mandir}/man3 %{buildroot}%{_mandir}/man3t
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Dec 26 2023 gaihuiying <eaglegai@163.com> - 1.3.4-1
|
||||||
- Type:requirements
|
- Type:requirements
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user