diff --git a/src/libstrongswan/plugins/pkcs12/pkcs12_decode.c b/src/libstrongswan/plugins/pkcs12/pkcs12_decode.c index 6f8f06f27..bed02cc42 100644 --- a/src/libstrongswan/plugins/pkcs12/pkcs12_decode.c +++ b/src/libstrongswan/plugins/pkcs12/pkcs12_decode.c @@ -307,10 +307,10 @@ static bool parse_authenticated_safe(private_pkcs12_t *this, chunk_t blob) if (!parse_safe_contents(this, parser->get_level(parser)+1, data)) { - chunk_free(&data); + chunk_clear(&data); goto end; } - chunk_free(&data); + chunk_clear(&data); break; } }