Corrected resource leak, Coverity 1264412

This commit is contained in:
Ward Fisher 2015-01-20 10:53:42 -07:00
parent f3b2deafa3
commit 59f8cf19f1

View File

@ -191,6 +191,9 @@ ocopen(OCstate** statep, const char* url)
#endif
if(statep) *statep = state;
else {
if(state != NULL) ocfree(state);
}
return OCTHROW(stat);
fail: