diff options
author | Christopher Faylor <me@cgf.cx> | 2004-04-11 04:00:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-04-11 04:00:01 +0000 |
commit | 3301015bdbbe4c2bff8e3a2ed0fe7cb30a798160 (patch) | |
tree | 66a5774cb16614c5abbb86ee3e806a939078a649 | |
parent | 66d9ac398a93ff3ec079f77c7dbdf25ed24a2ae3 (diff) | |
download | newlib-3301015bdbbe4c2bff8e3a2ed0fe7cb30a798160.zip newlib-3301015bdbbe4c2bff8e3a2ed0fe7cb30a798160.tar.gz newlib-3301015bdbbe4c2bff8e3a2ed0fe7cb30a798160.tar.bz2 |
* dtable.cc (dtable::extend): Change order of memcpy and cfree.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/dtable.cc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 638e5fb..9be9746 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2004-04-11 Pierre Humblet <pierre.humblet@ieee.org> + + * dtable.cc (dtable::extend): Change order of memcpy and cfree. + 2004-04-10 Corinna Vinschen <corinna@vinschen.de> * syscalls.cc (sync): Define void according to SUSv3. diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index d09dfda..5329104 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -91,8 +91,8 @@ dtable::extend (int howmuch) } if (fds) { - cfree (fds); memcpy (newfds, fds, size * sizeof (fds[0])); + cfree (fds); } size = new_size; |