fix camellia memory leak