]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a memory free bug.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 28 Mar 2011 12:22:55 +0000 (08:22 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 28 Mar 2011 12:22:55 +0000 (08:22 -0400)
SVN-Revision: 3109

libarchive/archive_string.c

index 13f77c384560a3f1a58054953370867b884a5a05..8c0259bb129a80dc007cfe15e0a35559e869d686 100644 (file)
@@ -711,7 +711,7 @@ make_codepage_from_charset(const char *charset)
                break;
        }
 
-       free(p);
+       free(cs);
        return (cp);
 }
 #endif