From 3301015bdbbe4c2bff8e3a2ed0fe7cb30a798160 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 11 Apr 2004 04:00:01 +0000 Subject: * dtable.cc (dtable::extend): Change order of memcpy and cfree. --- winsup/cygwin/dtable.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/dtable.cc') 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; -- cgit v1.2.3