Bug 696891

Summary: Memory leak in icaltimezone_set_component
Product: [Fedora] Fedora Reporter: Milan Crha <mcrha>
Component: libicalAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 14CC: mcrha, rdieter, redhat-bugzilla
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libical-0.48-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-01 19:29:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Milan Crha 2011-04-15 07:35:31 UTC
When doing some tests in evolution-data-server I found that libical is leaking memory whenever is called icaltimezone_set_component.

The valgrind log says:
> 11 bytes in 1 blocks are definitely lost in loss record 73 of 1,446
>    at 0x4A05E46: malloc (vg_replace_malloc.c:195)
>    by 0x33E6E7FC01: strdup (strdup.c:43)
>    by 0x33FC239612: icaltimezone_get_vtimezone_properties (icaltimezone.c:291)
>    by 0x401EE2: main (test-client-add-timezone.c:204)

and the statement at test-client-add-timezone.c:204 is just above mentioned call of icaltimezone_set_component.

It would be nice to have this fixed, at least for Fedora 15+, because this function can be called often in evolution-data-server, thus theoretically anything using its calendar factory.

Mine libical package version is:
libical-0.46-2.fc14.x86_64

Comment 2 Fedora Update System 2011-12-17 15:09:16 UTC
libical-0.48-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/libical-0.48-1.fc15

Comment 3 Fedora Update System 2011-12-17 15:09:18 UTC
libical-0.48-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/libical-0.48-1.el5

Comment 4 Fedora Update System 2011-12-17 15:09:18 UTC
libical-0.48-1.el4 has been submitted as an update for Fedora EPEL 4.
https://admin.fedoraproject.org/updates/libical-0.48-1.el4

Comment 5 Fedora Update System 2011-12-17 15:09:18 UTC
libical-0.48-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/libical-0.48-1.fc16

Comment 6 Fedora Update System 2011-12-17 19:26:26 UTC
Package libical-0.48-1.el4:
* should fix your issue,
* was pushed to the Fedora EPEL 4 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing libical-0.48-1.el4'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2011-5265/libical-0.48-1.el4
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-01-01 19:29:14 UTC
libical-0.48-1.el4 has been pushed to the Fedora EPEL 4 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-01-01 19:29:44 UTC
libical-0.48-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-01-01 21:22:37 UTC
libical-0.48-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2012-01-01 21:24:32 UTC
libical-0.48-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.