From: Michihiro NAKAJIMA Date: Mon, 28 Mar 2011 12:22:55 +0000 (-0400) Subject: Fix a memory free bug. X-Git-Tag: v3.0.0a~569 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97d671b60f43b227bc61abe08a405d98dc756ede;p=thirdparty%2Flibarchive.git Fix a memory free bug. SVN-Revision: 3109 --- diff --git a/libarchive/archive_string.c b/libarchive/archive_string.c index 13f77c384..8c0259bb1 100644 --- a/libarchive/archive_string.c +++ b/libarchive/archive_string.c @@ -711,7 +711,7 @@ make_codepage_from_charset(const char *charset) break; } - free(p); + free(cs); return (cp); } #endif