Displaying 1 result from an estimated 1 matches for "edsip".
Did you mean:
edsp
2009 Apr 01
2
bzero() before free()
Hi guys
I've been browsing the code and at many places I found the following odd sequence:
char * string=malloc(somesize);
?
bzero(string,strlen(string));
free(string);
I really don't see why you would zero a string and free the memory immediately afterwards?
Any idea why this is done?
Thanks!
Met vriendelijke groet
Best regards
Bien ? vous
Miguel SANDERS
ArcelorMittal Gent
UNIX