Ticket #1612: close_v1.patch

File close_v1.patch, 492 bytes (added by Vinu Rajashekhar, on Jul 12, 2010 at 9:03:27 PM)

new patch to close.c

  • cpukit/libcsupport/src/close.c

    diff --git a/cpukit/libcsupport/src/close.c b/cpukit/libcsupport/src/close.c
    index ecd666e..0976282 100644
    a b int close( 
    3131  rc = RTEMS_SUCCESSFUL;
    3232  rc = (*iop->handlers->close_h)( iop );
    3333
    34   rtems_filesystem_freenode( &iop->pathinfo );
     34  /* If not a socket, then freenode */
     35  if ( (iop->pathinfo).ops )
     36    rtems_filesystem_freenode( &iop->pathinfo );
    3537  rtems_libio_free( iop );
    3638
    3739  return rc;