Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 8071 - Memory leak in print lpd/printjob.c
Summary: Memory leak in print lpd/printjob.c
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lpr
Version: 6.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-12-30 20:58 UTC by Michael O'Keefe
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-01-05 18:15:48 UTC

Attachments (Terms of Use)

Description Michael O'Keefe 1999-12-30 20:58:59 UTC
Line 779 of lpd/printjob.c
            dup_cfpname = strdup(file);

>> You now lose the handle to this part of the memory. You will never be
>> able to free() it !! The whole preceeding line should be deleted since
>> it's goal is completed by the following line

            if (!(dup_cfpname = strdup(file)))
                    syslog(LOG_ERR, "Can't allocate memory for temp cfp
file name");

Comment 1 Bernhard Rosenkraenzer 2000-01-05 18:15:59 UTC
Fixed in lpr 0.47

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