Bug 662652: sftkdb_CloseDB should free SFTKDBHandle->passwordKey.data.

The patch is contributed by Matt Mueller <mattm@chromium.org>.  r=wtc.


git-svn-id: svn://10.0.0.236/trunk@262790 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%google.com
2011-09-01 20:04:54 +00:00
parent 3f19a88131
commit 4cc24bae01

View File

@@ -1495,6 +1495,9 @@ sftkdb_CloseDB(SFTKDBHandle *handle)
}
(*handle->db->sdb_Close)(handle->db);
}
if (handle->passwordKey.data) {
PORT_ZFree(handle->passwordKey.data, handle->passwordKey.len);
}
if (handle->passwordLock) {
SKIP_AFTER_FORK(PZ_DestroyLock(handle->passwordLock));
}