[PATCH] RFS: Fix resource leak
Joel Sherrill
joel.sherrill at oarcorp.com
Wed Oct 21 14:23:14 UTC 2015
Did you also commit this to 4.11 branch?
Does it apply to the 4.10 branch?
On 10/21/2015 2:56 AM, Sebastian Huber wrote:
> Close #2433.
> ---
> cpukit/libfs/src/rfs/rtems-rfs-rtems.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
> index 999dfb3..a0ade04 100644
> --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
> +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
> @@ -831,6 +831,8 @@ rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
> rc = rtems_rfs_fs_open (mt_entry->dev, rtems, flags, max_held_buffers, &fs);
> if (rc)
> {
> + rtems_rfs_mutex_unlock (&rtems->access);
> + rtems_rfs_mutex_destroy (&rtems->access);
> free (rtems);
> return rtems_rfs_rtems_error ("initialise: open", errno);
> }
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the devel
mailing list