#88 closed defect (fixed)

scandir does not do error cleanup

Reported by: jack Owned by: Jennifer Averett
Priority: lowest Milestone: 2
Component: fs Version: 4.5
Severity: normal Keywords:
Cc: bugs@…, joel.sherrill@… Blocked By:
Blocking:

Description

It seems we found bugs in scandir.c(copied from
newlib-1.9.0) - if an error occured
there is no clean up activity is made on return (
dinamically allocated memory is not freed). Seems it is not
very important because sys call scandir is used very seldom
and only CONFORMING TO BSD 4.3. But if this call presents in
RTEMS the bugs should be fixed. Because scandir.c is just
copied from newlib there are two approaches: fix the bugs
locally in RTMES src tree or make patch to newlib.

Release:
RTEMS CVS and probably 4.5

Attachments (2)

scandir.c (5.1 KB) - added by jack on 12/03/06 at 13:31:12.
scandir.c
scandir.diff (2.6 KB) - added by jack on 12/03/06 at 13:31:12.
scandir.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on 11/30/01 at 11:06:44 by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: analyzed->closed
State-Changed-Why: Attached patch is now committed

Changed on 12/03/06 at 13:31:12 by jack

Attachment: scandir.diff added

scandir.diff

Note: See TracTickets for help on using tickets.