Skip to content

Commit afb6b56

Browse files
committed
Merge branch 'maint-1.7.6' into maint-1.7.7
* maint-1.7.6: attr: fix leak in free_attr_elem t2203: fix wrong commit command
2 parents 804e97f + 37475f9 commit afb6b56

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

attr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ static void free_attr_elem(struct attr_stack *e)
301301
}
302302
free(a);
303303
}
304+
free(e->attrs);
304305
free(e);
305306
}
306307

t/t2203-add-intent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test_expect_success 'cannot commit with i-t-a entry' '
4141
echo frotz >nitfol &&
4242
git add rezrov &&
4343
git add -N nitfol &&
44-
test_must_fail git commit
44+
test_must_fail git commit -m initial
4545
'
4646

4747
test_expect_success 'can commit with an unrelated i-t-a entry in index' '

0 commit comments

Comments
 (0)