This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

athttp memory leak if NFILES < MAXSOCKETS


athttpd\current\include:http.h needs
--    socket_entry sockets[CYGNUM_FILEIO_NFILE];
++   socket_entry sockets[CYGPKG_NET_MAXSOCKETS];

and

athttpd\current\src:socket.c needs

--    for (i = 0; i < CYGNUM_FILEIO_NFILE; i++)
++   for (i = 0; i < CYGPKG_NET_MAXSOCKETS; i++)
   {
       httpstate.sockets[i].descriptor  = 0;
       httpstate.sockets[i].timestamp   = (time_t)0;
   }

because the rest of socket.c indexes sockets[] up to MAXSOCKETS.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]