Address a warning found by Coverity Scan

This commit is contained in:
Milan Crha 2018-07-19 16:51:56 +02:00
parent c63201d316
commit d0392f2a3a
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -up libical-3.0.3/src/libical-glib/tools/generator.c.covscan libical-3.0.3/src/libical-glib/tools/generator.c
--- libical-3.0.3/src/libical-glib/tools/generator.c.covscan 2018-07-19 15:53:11.291351554 +0200
+++ libical-3.0.3/src/libical-glib/tools/generator.c 2018-07-19 15:53:25.200351362 +0200
@@ -1142,7 +1142,6 @@ void generate_forward_declarations_heade
if (c == '$') {
if ((c = fgetc(in)) != '{' && c != '^') {
printf("The following char is not {");
- g_free (buffer);
fclose(in);
fclose(out);
return;

View File

@ -1,11 +1,13 @@
Summary: Reference implementation of the iCalendar data type and serialization format
Name: libical
Version: 3.0.3
Release: 6%{?dist}
Release: 7%{?dist}
License: LGPLv2 or MPLv2.0
URL: https://libical.github.io/libical/
Source: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch01: libical-3.0.3-covscan.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
@ -61,6 +63,8 @@ Development files needed for building things which link against %{name}-glib.
%prep
%setup -q
%patch01 -p1 -b .covscan
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
@ -123,6 +127,9 @@ make test ARGS="-V" -C %{_target_platform}
%{_datadir}/gtk-doc/html/%{name}-glib
%changelog
* Thu Jul 19 2018 Milan Crha <mcrha@redhat.com> - 3.0.3-7
- Address a warning found by Coverity Scan
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild