vendor/libgit2/src/transaction.c in rugged-1.0.1 vs vendor/libgit2/src/transaction.c in rugged-1.1.0

- old
+ new

@@ -74,10 +74,11 @@ git_pool pool; git_transaction *tx = NULL; assert(out && repo); - git_pool_init(&pool, 1); + if ((error = git_pool_init(&pool, 1)) < 0) + goto on_error; tx = git_pool_mallocz(&pool, sizeof(git_transaction)); if (!tx) { error = -1; goto on_error;