diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-05-24 12:04:28 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-05-24 12:04:28 +0000 |
commit | 5821c6b519dc9586d6218fa0553255545b771b43 (patch) | |
tree | c40421f16eb0ea31ced5c5ebc620d1011cb8e75f /src/lib | |
parent | 888d859092e719dac61c784e0e99b75f276d26fe (diff) |
fixed memory leak in libflac/libflac/md5.c (fixes memory issues with chdman) [Oliver Stöneberg]
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libflac/libflac/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libflac/libflac/md5.c b/src/lib/libflac/libflac/md5.c index 2a1f5669f29..396c1aa451b 100644 --- a/src/lib/libflac/libflac/md5.c +++ b/src/lib/libflac/libflac/md5.c @@ -263,12 +263,12 @@ void FLAC__MD5Final(FLAC__byte digest[16], FLAC__MD5Context *ctx) byteSwap(ctx->buf, 4); memcpy(digest, ctx->buf, 16); - memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ if(0 != ctx->internal_buf) { free(ctx->internal_buf); ctx->internal_buf = 0; ctx->capacity = 0; } + memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } /* |