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 /winsup/cygwin/dtable.cc | |
parent | 66d9ac398a93ff3ec079f77c7dbdf25ed24a2ae3 (diff) | |
download | cygnal-3301015bdbbe4c2bff8e3a2ed0fe7cb30a798160.tar.gz cygnal-3301015bdbbe4c2bff8e3a2ed0fe7cb30a798160.tar.bz2 cygnal-3301015bdbbe4c2bff8e3a2ed0fe7cb30a798160.zip |
* dtable.cc (dtable::extend): Change order of memcpy and cfree.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |