From: rustyBSD <rus...@gm...> - 2012-12-07 21:19:09
|
Le 01/12/2012 10:02, rustyBSD a écrit : > We can also fix leaks. > > > I. Removed useless 'buf[sizeof(buf) - 1] = 0;', fgets() > already does that > > II. Ensure file descriptors are closed before 'goto error' > > III.We don't need to nullcheck before freeing a buf, as it's > already done by free() So, what's new ? |