Fix a use-after-free

This commit is contained in:
tarsin committed 2022-08-20 20:23:57 +08:00
1 parent 956b7c719e
commit 56996558df
1 file changed
+1
+1
View File
@@ -178,6 +178,7 @@ JNIEXPORT void JNICALL
Java_com_hippo_UriArchiveAccessor_closeArchive(JNIEnv *jniEnv, jobject thiz) {
archive_release();
free(passwd);
passwd = NULL;
munmap(archiveAddr, archiveSize);
}