Bug 684189 - memory leak in quota-3.17-64-bit-quota-support.patch
Summary: memory leak in quota-3.17-64-bit-quota-support.patch
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: quota
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://sourceforge.net/tracker/?func...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-11 12:19 UTC by Petr Pisar
Modified: 2011-03-16 04:08 UTC (History)
3 users (show)

Fixed In Version: quota-4.00-0.9.pre1.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of: 684017
Environment:
Last Closed: 2011-03-16 04:08:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Comment 1 Petr Pisar 2011-03-11 12:38:51 UTC
+++ This bug was initially created as a clone of Bug #684017 +++

Description of problem:
qtree_read_dquot() calls smalloc(info->dqi_entry_size) to allocate memory that
is never freed afterwards.

--- Additional comment from ppisar on 2011-03-11 09:56:18 GMT ---

You are right. The ddquot buffer is allocated, under a condition filled by data
and its content parsed and copied into dquot, and then the function exits. So
the ddquot buffer should be freed before return.

Upstream development version is affected too.

--- Additional comment from ppisar on 2011-03-11 10:01:28 GMT ---

The same bug is in qtree_write_dquot() in the same file.

[...]

--- Additional comment from ppisar on 2011-03-11 11:49:18 GMT ---

Created attachment 483694 [details]
Fix ddquot buffer leak

Fix submitted to upstream, it applies to RHEL-6 version cleanly, leaks in both
functions are covered.
----

quota-4.00_pre1 in F16--15 is affected too.

Comment 2 Fedora Update System 2011-03-11 12:55:59 UTC
quota-4.00-0.9.pre1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/quota-4.00-0.9.pre1.fc15

Comment 3 Fedora Update System 2011-03-16 04:08:20 UTC
quota-4.00-0.9.pre1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.