* 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>
|
2004-04-10 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* syscalls.cc (sync): Define void according to SUSv3.
|
* syscalls.cc (sync): Define void according to SUSv3.
|
||||||
|
|
|
@ -91,8 +91,8 @@ dtable::extend (int howmuch)
|
||||||
}
|
}
|
||||||
if (fds)
|
if (fds)
|
||||||
{
|
{
|
||||||
cfree (fds);
|
|
||||||
memcpy (newfds, fds, size * sizeof (fds[0]));
|
memcpy (newfds, fds, size * sizeof (fds[0]));
|
||||||
|
cfree (fds);
|
||||||
}
|
}
|
||||||
|
|
||||||
size = new_size;
|
size = new_size;
|
||||||
|
|
Loading…
Reference in New Issue