Commit 177ef749 authored by conrad's avatar conrad
Browse files

merged fclose handling for oggz_new failure in oggz_open [from colin]

git-svn-id: 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 2a69a7f0
......@@ -118,8 +118,10 @@ oggz_open (char * filename, int flags)
if (file == NULL) return NULL;
if ((oggz = oggz_new (flags)) == NULL)
if ((oggz = oggz_new (flags)) == NULL) {
fclose (file);
return NULL;
oggz->file = file;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment