diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 638e5fb77..9be9746a3 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2004-04-11 Pierre Humblet + + * dtable.cc (dtable::extend): Change order of memcpy and cfree. + 2004-04-10 Corinna Vinschen * syscalls.cc (sync): Define void according to SUSv3. diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index d09dfda88..532910410 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;