* dtable.cc (dtable::extend): Change order of memcpy and cfree.

This commit is contained in:
Christopher Faylor 2004-04-11 04:00:01 +00:00
parent 66d9ac398a
commit 3301015bdb
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -91,8 +91,8 @@ dtable::extend (int howmuch)
}
if (fds)
{
cfree (fds);
memcpy (newfds, fds, size * sizeof (fds[0]));
cfree (fds);
}
size = new_size;