Commit 57d40ffb authored by Claes Sjofors's avatar Claes Sjofors

Script memory leakage fix

parent 3cede8c2
...@@ -1116,7 +1116,6 @@ static int operand_found( ccm_tRowCtx rowctx) ...@@ -1116,7 +1116,6 @@ static int operand_found( ccm_tRowCtx rowctx)
else if ( rowctx->state == K_STATE_NUM) else if ( rowctx->state == K_STATE_NUM)
{ {
/* Numeric found */ /* Numeric found */
operand_p = calloc( 1, sizeof(*operand_p));
operand_p->type = K_OPERAND_VALUE; operand_p->type = K_OPERAND_VALUE;
strncpy( operand_p->name, &rowctx->line[rowctx->delim_pos], strncpy( operand_p->name, &rowctx->line[rowctx->delim_pos],
rowctx->pos - rowctx->delim_pos); rowctx->pos - rowctx->delim_pos);
......
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