| Previous | 15994 Revisions | Next |
| r15303 Thursday 24th May, 2012 at 12:06:24 UTC by Firewave |
|---|
| fixed memory leak in libflac/libflac/md5.c (fixes memory issues with chdman) [Oliver St?\195?\182neberg] |
| [src/lib/libflac/libflac] | md5.c |
| r15302 | r15303 | |
|---|---|---|
| 263 | 263 | |
| 264 | 264 | byteSwap(ctx->buf, 4); |
| 265 | 265 | memcpy(digest, ctx->buf, 16); |
| 266 | memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ | |
| 267 | 266 | if(0 != ctx->internal_buf) { |
| 268 | 267 | free(ctx->internal_buf); |
| 269 | 268 | ctx->internal_buf = 0; |
| 270 | 269 | ctx->capacity = 0; |
| 271 | 270 | } |
| 271 | memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ | |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | /* |
| Previous | 15994 Revisions | Next |