Changeset 4a2ac5e in rtems for cpukit/include/rtems/dosfs.h

Timestamp:
08/03/20 12:18:33 (4 years ago)
Author:
Christian Mauderer <christian.mauderer@…>
Branches:
5
Children:
534f9dbe
Parents:
5eb07731
git-author:
Christian Mauderer <christian.mauderer@…> (08/03/20 12:18:33)
git-committer:
Christian Mauderer <christian.mauderer@…> (08/04/20 06:26:58)
Message:

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.

  1. 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.

(No files)

Note: See TracChangeset for help on using the changeset viewer.