Commit 177ef749 authored by conrad's avatar conrad

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


git-svn-id: http://svn.annodex.net/liboggz/trunk@437 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