This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
[Patch]: dtable.cc
- From: "Pierre A. Humblet" <pierre at phumblet dot no-ip dot org>
- To: cygwin-patches at cygwin dot com
- Date: Sat, 10 Apr 2004 23:42:39 -0400
- Subject: [Patch]: dtable.cc
Here is a minor fix in dtable.cc.
My next fix is to remove the normalized_path from path_conv,
and the attendant malloc and path_conv destructor. The patch is
not big, but it may have unexpected corner effects.
I will wait until after the next release is out.
Pierre
2004-04-11 Pierre Humblet <pierre.humblet@ieee.org>
* dtable.cc (dtable::extend): Change order of memcpy and cfree.
Index: dtable.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/dtable.cc,v
retrieving revision 1.139
diff -u -p -r1.139 dtable.cc
--- dtable.cc 10 Apr 2004 13:45:09 -0000 1.139
+++ dtable.cc 10 Apr 2004 19:25:15 -0000
@@ -91,8 +91,8 @@ dtable::extend (int howmuch)
}
if (fds)
{
- cfree (fds);
memcpy (newfds, fds, size * sizeof (fds[0]));
+ cfree (fds);
}
size = new_size;