Commit 1f111f12 authored by Jimmy Brisson's avatar Jimmy Brisson Committed by Manish Pandey
Browse files

Free keys after use



Change-Id: I16ba4420ffeb9aa439e0a09a1b34d2aba2e1eb6e
Signed-off-by: default avatarJimmy Brisson <jimmy.brisson@arm.com>
parent bea80198
......@@ -581,6 +581,13 @@ int main(int argc, char *argv[])
}
}
/* If we got here, then we must have filled the key array completely.
* We can then safely call free on all of the keys in the array
*/
for (i = 0; i < num_keys; i++) {
EVP_PKEY_free(keys[i].key);
}
#ifndef OPENSSL_NO_ENGINE
ENGINE_cleanup();
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment