Ticket #5074: FZS-FixMD5MemLeak.patch
File FZS-FixMD5MemLeak.patch, 778 bytes (added by , 15 years ago) |
---|
-
Interface/misc/md5.cpp
282 282 283 283 284 284 ostream& operator<<(ostream &stream, MD5 context){ 285 286 stream << context.hex_digest(); 285 char* digest=context.hex_digest(); 286 stream << digest; 287 delete [] digest; 287 288 return stream; 288 289 } 289 290 -
misc/md5.cpp
291 291 292 292 293 293 ostream& operator<<(ostream &stream, MD5 context){ 294 295 stream << context.hex_digest(); 294 char* digest=context.hex_digest(); 295 stream << digest; 296 delete [] digest; 296 297 return stream; 297 298 } 298 299