Skip to content

Commit

Permalink
Free old store name (if any).
Browse files Browse the repository at this point in the history
  • Loading branch information
snhenson committed Jun 1, 2008
1 parent c621c7e commit 953174f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/e_capi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 953174f

Please sign in to comment.