https://github.com/git/git
Revision 2cdf9509df66358f83a577caf83dc06e3161ec3c authored by Linus Torvalds on 11 January 2007, 20:25:16 UTC, committed by Junio C Hamano on 11 January 2007, 20:25:16 UTC
It is not used after getting written, and just is leaking every time
we write the index out.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 2a3a3c2
Raw File
Tip revision: 2cdf9509df66358f83a577caf83dc06e3161ec3c authored by Linus Torvalds on 11 January 2007, 20:25:16 UTC
write-cache: do not leak the serialized cache-tree data.
Tip revision: 2cdf950
pack.h
#ifndef PACK_H
#define PACK_H

#include "object.h"

/*
 * Packed object header
 */
#define PACK_SIGNATURE 0x5041434b	/* "PACK" */
#define PACK_VERSION 2
#define pack_version_ok(v) ((v) == htonl(2) || (v) == htonl(3))
struct pack_header {
	unsigned int hdr_signature;
	unsigned int hdr_version;
	unsigned int hdr_entries;
};

extern int verify_pack(struct packed_git *, int);
#endif
back to top