[PATCH rtems] dosfs: Fix memory leak on failed mounts.

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 3 14:11:55 UTC 2020


On 03/08/2020 16:01, Christian Mauderer wrote:

> In theory we could. But then we have two cases that look the same to a
> user but need a different handling:
>
> 1. `mount` failed before reaching rtems_dosfs_initialize (for example
> because a wrong file system has been provided or a target directory
> doesn't exist). In this case the user provided converter would_not_  be
> destroyed.
Ok, now I understand what you meant with the mount() failed before 
reaching rtems_dosfs_initialize(). Looks like your patch is the way to go.


More information about the devel mailing list