diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-06-01 23:45:11 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-06-01 23:45:11 +0000 |
commit | 953174f46ec1e1bb157f51265d6b7a083fab0d3e (patch) | |
tree | 6119231eacceaa1b4aa81dc93166c0030922102e /engines | |
parent | c621c7e432a0c03beaa6277de76059d868bf6514 (diff) |
Free old store name (if any).
Diffstat (limited to 'engines')
-rw-r--r-- | engines/e_capi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/e_capi.c b/engines/e_capi.c index cfb9a38585..dabac92d8a 100644 --- a/engines/e_capi.c +++ b/engines/e_capi.c @@ -265,6 +265,8 @@ static int capi_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void)) break; case CAPI_CMD_STORE_NAME: + if (ctx->storename) + OPENSSL_free(ctx->storename); ctx->storename = BUF_strdup(p); CAPI_trace(ctx, "Setting store name to %s\n", p); break; |