https://github.com/git/git
Revision 70d19a436dfdc2375f7c80dac85bc08160f6a0f7 authored by Junio C Hamano on 04 June 2017, 01:21:01 UTC, committed by Junio C Hamano on 04 June 2017, 01:21:01 UTC
The codepath in "git am" that is used when running "git rebase"
leaked memory held for the log message of the commits being rebased.

* jk/am-leakfix:
  am: shorten ident_split variable name in get_commit_info()
  am: simplify allocations in get_commit_info()
  am: fix commit buffer leak in get_commit_info()
2 parent s 8a17b25 + 721f5f1
Raw File
Tip revision: 70d19a436dfdc2375f7c80dac85bc08160f6a0f7 authored by Junio C Hamano on 04 June 2017, 01:21:01 UTC
Merge branch 'jk/am-leakfix' into maint
Tip revision: 70d19a4
tag.h
#ifndef TAG_H
#define TAG_H

#include "object.h"

extern const char *tag_type;

struct tag {
	struct object object;
	struct object *tagged;
	char *tag;
	unsigned long date;
};

extern struct tag *lookup_tag(const unsigned char *sha1);
extern int parse_tag_buffer(struct tag *item, const void *data, unsigned long size);
extern int parse_tag(struct tag *item);
extern struct object *deref_tag(struct object *, const char *, int);
extern struct object *deref_tag_noverify(struct object *);
extern int gpg_verify_tag(const unsigned char *sha1,
		const char *name_to_report, unsigned flags);

#endif /* TAG_H */
back to top