From 585190183b47dc991605abcfbe3afb57220a0f29 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 28 Oct 2010 02:07:18 +0300 Subject: Fix internal memory management on the library String mememory is now managed in a much more sane manner. Fixes include: - git_person email and name is no longer limited to 64 characters - git_tree_entry filename is no longer limited to 255 characters - raw objects are properly opened & closed the minimum amount of times required for parsing - unit tests no longer leak - removed 5 other misc memory leaks as reported by Valgrind - tree writeback no longer segfaults on rare ocassions The git_person struct is no longer public. It is now managed by the library, and getter methods are in place to access its internal attributes. Signed-off-by: Vicent Marti --- src/commit.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/commit.h') diff --git a/src/commit.h b/src/commit.h index 39a7a52ff..1c765abd3 100644 --- a/src/commit.h +++ b/src/commit.h @@ -31,14 +31,7 @@ struct git_commit { void git_commit__free(git_commit *c); int git_commit__parse(git_commit *commit); int git_commit__parse_full(git_commit *commit); -int git_commit__parse_buffer(git_commit *commit, void *data, size_t len, unsigned int parse_flags); int git_commit__writeback(git_commit *commit, git_odb_source *src); -int git__parse_oid(git_oid *oid, char **buffer_out, const char *buffer_end, const char *header); -int git__parse_person(git_person *person, char **buffer_out, const char *buffer_end, const char *header); - -int git__write_oid(git_odb_source *src, const char *header, const git_oid *oid); -int git__write_person(git_odb_source *src, const char *header, const git_person *person); - #endif -- cgit v1.2.1