diff options
Diffstat (limited to 'c/src/exec/libcsupport/src/utime.c')
-rw-r--r-- | c/src/exec/libcsupport/src/utime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/exec/libcsupport/src/utime.c b/c/src/exec/libcsupport/src/utime.c index dcfad893cd..ba9a50a63d 100644 --- a/c/src/exec/libcsupport/src/utime.c +++ b/c/src/exec/libcsupport/src/utime.c @@ -32,8 +32,10 @@ int utime( if ( rtems_filesystem_evaluate_path( path, 0x00, &temp_loc, TRUE ) ) return -1; - if ( !temp_loc.ops->utime_h ) + if ( !temp_loc.ops->utime_h ){ + rtems_filesystem_freenode( &temp_loc ); set_errno_and_return_minus_one( ENOTSUP ); + } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); |