In the function TRI_CreateNodeReturnEmptyAql(), if TRI_Allocate() failed to allocate memory for 'list', 'list' was freed, instead of 'node'.
Memory leak in the function ScanPath() if the directory is not writable.
The 'json' structure was not freed in the function TRI_LoadCollectionInfo() if the file was not a JSON array.