[RTEMS Project] #4041: dosfs: Memory leak on failed mount attempts

RTEMS trac trac at rtems.org
Tue Aug 4 06:27:45 UTC 2020


#4041: dosfs: Memory leak on failed mount attempts
--------------------------------+---------------------------------
 Reporter:  Christian Mauderer  |       Owner:  Christian Mauderer
     Type:  defect              |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  fs/fat              |     Version:  5
 Severity:  normal              |  Resolution:  fixed
 Keywords:                      |  Blocked By:
 Blocking:                      |
--------------------------------+---------------------------------
Changes (by Christian Mauderer <christian.mauderer@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"4a2ac5ef8d7e8bac4c63b26420d0df08ce82aa09/rtems"
 4a2ac5e/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="4a2ac5ef8d7e8bac4c63b26420d0df08ce82aa09"
 dosfs: Fix memory leak on failed mounts.

 Currently if mount fails, a converter isn't destroyed. We have to take
 care of two cases:

 1. The user doesn't provide a converter.

 In this case mounting a dosfs creates a default converter. This patch
 makes sure that the converter is destroyed again if mount failes for
 this case.

 2. The user provides a converter.

 In this case it's not sure that the dosfs specific routines are reached
 because mount can fail before that. Therefore the user has to destroy
 the converter himself again. This patch adds a documentation for that
 and implements it in the media server.

 Closes #4041.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4041#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list