summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-02-27 04:39:54 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2015-02-27 04:39:54 +0000
commit3cbaa5872cd6e0997fae63767e0732743435e473 (patch)
treefc72e05b163da3245258e8fc47dac6c901cb8e3a
parent366e53d3da72805a3db1a1e77d4666416fcb5a93 (diff)
downloadlibgit2-3cbaa5872cd6e0997fae63767e0732743435e473.tar.gz
rebase: check alloc result
-rw-r--r--src/rebase.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rebase.c b/src/rebase.c
index 8078eedc3..cf3558d16 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;