1
0
Fork 0

fixed potential crash when parameter file cannot be created

This commit is contained in:
Jan Steemann 2012-09-05 11:43:57 +02:00
parent fcc5e20a1a
commit 6a4c9c1c07
1 changed files with 1 additions and 2 deletions

View File

@ -589,9 +589,8 @@ TRI_collection_t* TRI_CreateCollection (TRI_vocbase_t* vocbase,
res = TRI_SaveParameterInfoCollection(filename, parameter);
if (res != TRI_ERROR_NO_ERROR) {
TRI_FreeString(TRI_CORE_MEM_ZONE, filename);
LOG_ERROR("cannot save collection parameter '%s': '%s'", filename, TRI_last_error());
TRI_FreeString(TRI_CORE_MEM_ZONE, filename);
return NULL;
}