* dtable.cc (dtable::extend): Change order of memcpy and cfree.
This commit is contained in:
parent
66d9ac398a
commit
3301015bdb
|
@ -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.
|
||||
|
|
|
@ -91,8 +91,8 @@ dtable::extend (int howmuch)
|
|||
}
|
||||
if (fds)
|
||||
{
|
||||
cfree (fds);
|
||||
memcpy (newfds, fds, size * sizeof (fds[0]));
|
||||
cfree (fds);
|
||||
}
|
||||
|
||||
size = new_size;
|
||||
|
|
Loading…
Reference in New Issue