Fix a use-after-free
This commit is contained in:
1 parent
956b7c719e
commit
56996558df
1 file changed
+1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user