diff options
author | 2012-08-04 13:45:00 +0200 | |
---|---|---|
committer | 2012-08-04 13:45:00 +0200 | |
commit | 7bcfb80083304ae771b49db1c97f1e54e04a51b2 (patch) | |
tree | de10a805cd81c76ed9de26114c9598ff1096a6da /plugins/alac/stream.c | |
parent | 8a1585fd4d2d7ac6a5297a6166d3090e0c49ae90 (diff) |
alac: fixed few memleaks
Diffstat (limited to 'plugins/alac/stream.c')
-rw-r--r-- | plugins/alac/stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/alac/stream.c b/plugins/alac/stream.c index 0c99a32b..cb969dd0 100644 --- a/plugins/alac/stream.c +++ b/plugins/alac/stream.c @@ -32,6 +32,7 @@ #include <stdlib.h> #include <errno.h> +#include <string.h> #ifdef _WIN32 #include "stdint_win.h" #else @@ -169,6 +170,7 @@ stream_t *stream_create_file(DB_FILE *file, int bigendian, int64_t junk_offset) stream_t *new_stream; new_stream = (stream_t*)malloc(sizeof(stream_t)); + memset (new_stream, 0, sizeof (new_stream)); new_stream->f = file; new_stream->bigendian = bigendian; new_stream->eof = 0; |