[rtems commit] RFS: Fix resource leak
Sebastian Huber
sebh at rtems.org
Mon Oct 26 06:28:05 UTC 2015
Module: rtems
Branch: 4.10
Commit: 90b51b5a4453765b044d1bed849d11623e30d07e
Changeset: http://git.rtems.org/rtems/commit/?id=90b51b5a4453765b044d1bed849d11623e30d07e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Oct 21 09:52:36 2015 +0200
RFS: Fix resource leak
Update #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 26b57ff..3f58f6e 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
@@ -1326,6 +1326,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", rc);
}
More information about the vc
mailing list