Commit 18fcb5c813b27e99f8c7425930c4d9951f9d9b96

Carlos Martín Nieto 2015-03-01T21:00:11

Merge pull request #2928 from ethomson/rebase_alloc_check rebase: check alloc result

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/rebase.c b/src/rebase.c
index 8078eed..cf3558d 100644
--- a/src/rebase.c
+++ b/src/rebase.c
@@ -576,6 +576,7 @@ static int rebase_init_operations(
 			continue;
 
 		operation = rebase_operation_alloc(rebase, GIT_REBASE_OPERATION_PICK, &id, NULL);
+		GITERR_CHECK_ALLOC(operation);
 	}
 
 	error = 0;