Update git-add.txt according to the new possibilities of 'git add -p'.
[gitweb.git] / builtin-pack-objects.c
index 9fc3b355470466bd5663e1fca1fe759e18869ee2..6cf5b86e15bd01d03aad4c3476a005923542a6f3 100644 (file)
@@ -1912,6 +1912,8 @@ static void show_object(struct object_array_entry *p)
        add_preferred_base_object(p->name);
        add_object_entry(p->item->sha1, p->item->type, p->name, 0);
        p->item->flags |= OBJECT_ADDED;
+       free((char *)p->name);
+       p->name = NULL;
 }
 
 static void show_edge(struct commit *commit)