From dd0f32614ceb0dd72f406d8434acdecc5ccff616 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 12 Oct 1999 19:10:46 +0000 Subject: Added rtems_filesystem_freenode() macro and added calls at appropriate places to make sure memory allocated for filesystem specifif nodes gets freed. --- c/src/lib/libc/utime.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'c/src/lib/libc/utime.c') diff --git a/c/src/lib/libc/utime.c b/c/src/lib/libc/utime.c index ccc92d044e..b7987c87b4 100644 --- a/c/src/lib/libc/utime.c +++ b/c/src/lib/libc/utime.c @@ -34,8 +34,7 @@ int utime( result = (*temp_loc.ops->utime)( &temp_loc, times->actime, times->modtime ); - if ( temp_loc.ops->freenod ) - (*temp_loc.ops->freenod)( &temp_loc ); + rtems_filesystem_freenode( &temp_loc ); return result; } -- cgit v1.2.3