Merge branch 'maint-1.7.6' into maint-1.7.7
authorJunio C Hamano <gitster@pobox.com>
Thu, 12 Jan 2012 03:11:00 +0000 (19:11 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Jan 2012 03:11:00 +0000 (19:11 -0800)
* maint-1.7.6:
attr: fix leak in free_attr_elem
t2203: fix wrong commit command

attr.c
t/t2203-add-intent.sh
diff --git a/attr.c b/attr.c
index 96eda0ef078f998c020666f89eea29ac4b1bfb53..303751f6c2bd4d558cffbb928c636581efb2b310 100644 (file)
--- a/attr.c
+++ b/attr.c
@@ -301,6 +301,7 @@ static void free_attr_elem(struct attr_stack *e)
                }
                free(a);
        }
+       free(e->attrs);
        free(e);
 }
 
index 58a329961e5c269e1b035558db890c9e30375147..25435290a71ae8031762a3e63537fd3a23a8fc90 100755 (executable)
@@ -41,7 +41,7 @@ test_expect_success 'cannot commit with i-t-a entry' '
        echo frotz >nitfol &&
        git add rezrov &&
        git add -N nitfol &&
-       test_must_fail git commit
+       test_must_fail git commit -m initial
 '
 
 test_expect_success 'can commit with an unrelated i-t-a entry in index' '