From 0c40eb306447decb934569f5df76742f104fcd4c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 19 Oct 2001 17:37:24 +0000 Subject: 2001-10-18 Till Straumann * libc/open.c, libc/close.c: Moved freenode from open to close. --- cpukit/libcsupport/src/close.c | 1 + cpukit/libcsupport/src/open.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'cpukit') diff --git a/cpukit/libcsupport/src/close.c b/cpukit/libcsupport/src/close.c index 00fa8872a2..a9bfc289ac 100644 --- a/cpukit/libcsupport/src/close.c +++ b/cpukit/libcsupport/src/close.c @@ -32,6 +32,7 @@ int close( if ( iop->handlers->close_h ) rc = (*iop->handlers->close_h)( iop ); + rtems_filesystem_freenode( &iop->pathinfo ); rtems_libio_free( iop ); return rc; diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c index bfb4117e73..4bb2ce17ae 100644 --- a/cpukit/libcsupport/src/open.c +++ b/cpukit/libcsupport/src/open.c @@ -187,8 +187,6 @@ done: set_errno_and_return_minus_one( rc ); } - rtems_filesystem_freenode( &loc ); - return iop - rtems_libio_iops; } -- cgit v1.2.3