From 1c43c9741bc4d9f62f2e3262cea1309890d1bbd2 Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Tue, 28 Feb 2012 11:07:09 -0800 Subject: fix failure to free memory The applypatch function is somewhat sloppy about freeing memory (since it was originally a standalone binary). Fix some of that. Change-Id: Ifd44d71ea189c0b5115493119fd57bc37533fd59 --- applypatch/applypatch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applypatch/applypatch.h') diff --git a/applypatch/applypatch.h b/applypatch/applypatch.h index a78c89bfe..e8ac3cc6d 100644 --- a/applypatch/applypatch.h +++ b/applypatch/applypatch.h @@ -62,7 +62,7 @@ int applypatch_check(const char* filename, int LoadFileContents(const char* filename, FileContents* file, int retouch_flag); -int SaveFileContents(const char* filename, FileContents file); +int SaveFileContents(const char* filename, const FileContents* file); void FreeFileContents(FileContents* file); int FindMatchingPatch(uint8_t* sha1, char** const patch_sha1_str, int num_patches); -- cgit v1.2.3