Bug 8071 - Memory leak in print lpd/printjob.c
Summary: Memory leak in print lpd/printjob.c
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: lpr
Version: 6.1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
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:
Clone Of:
Environment:
Last Closed: 2000-01-05 18:15:48 UTC
Embargoed:


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");
                    return(OK);
                }

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.