diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-09-19 18:31:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-09-19 18:31:05 +0000 |
commit | 8f367d6baae86155770b61756321277905f64fcb (patch) | |
tree | f6367761075155acf4646a20af845a4cc57ab6af /c/src/exec/libcsupport/src | |
parent | Merged changes from Eric Norum: (diff) | |
download | rtems-8f367d6baae86155770b61756321277905f64fcb.tar.bz2 |
Bug fix from Eric Norum:
After weeks of trying to figure why my RTEMS/KASQ server crashes now
and then I found a nasty bug I introduced in adding multiple-driver
support to libio. The bug only affects `add-on' driver classes (like
the networking code). Old-style file descriptors were not affected.
The bug cleared 32 bytes of memory (unspecified location) whenever a
`close' of a socket was performed! I was clearing an IOP I hadn't
allocated -- and the pointer wasn't initiallized, either!
Diffstat (limited to 'c/src/exec/libcsupport/src')
-rw-r--r-- | c/src/exec/libcsupport/src/libio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/c/src/exec/libcsupport/src/libio.c b/c/src/exec/libcsupport/src/libio.c index cd66b3d1d4..83253a7903 100644 --- a/c/src/exec/libcsupport/src/libio.c +++ b/c/src/exec/libcsupport/src/libio.c @@ -338,7 +338,6 @@ __rtems_close( return -1; } status = (*fp)(fd); - rtems_libio_free(iop); return status; } iop = rtems_libio_iop(fd); |