fixed resouce leak
This commit is contained in:
parent
d60c7c584f
commit
34132615bb
@ -12,3 +12,16 @@ diff -up which-2.21/tilde/tilde.c.me which-2.21/tilde/tilde.c
|
||||
else
|
||||
result = (char *)xmalloc (result_size = (strlen (string) + 1));
|
||||
diff -up which-2.21/which.c.me which-2.21/which.c
|
||||
diff -up which-2.21/which.c.me which-2.21/which.c
|
||||
--- which-2.21/which.c.me 2018-07-23 15:09:04.355222509 +0200
|
||||
+++ which-2.21/which.c 2018-07-25 14:57:43.696309701 +0200
|
||||
@@ -671,6 +671,9 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
+ if (abs_path)
|
||||
+ free(abs_path);
|
||||
+
|
||||
return fail_count;
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: Displays where a particular program in your path is located
|
||||
Name: which
|
||||
Version: 2.21
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
License: GPLv3
|
||||
Source0: http://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
|
||||
Source1: which2.sh
|
||||
@ -39,6 +39,9 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
%{_mandir}/man1/which.1*
|
||||
|
||||
%changelog
|
||||
* Thu Jul 26 2018 Than Ngo <than@redhat.com> - 2.21-11
|
||||
- fixed more coverity issue
|
||||
|
||||
* Mon Jul 23 2018 Than Ngo <than@redhat.com> - 2.21-10
|
||||
- Fix coverity issues
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user