Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
os_free should used rather than free
  • Loading branch information
lessismoreh committed Jul 15, 2020
1 parent 24088c7 commit c973ae0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/database/database/code/q_parser.y
Expand Up @@ -308,7 +308,7 @@ ID:
/* frees dynamically malloced variable length string value
allocated by the lexical scanner.
*/
free($1);
os_free($1);
}
;

Expand All @@ -318,21 +318,21 @@ scopedName:
/* frees dynamically malloced variable length string value
allocated by the lexical scanner.
*/
free($1);
os_free($1);
}
| DOUBLECOLON identifier
{ $$ = List1(q_newId($2));
/* frees dynamically malloced variable length string value
allocated by the lexical scanner.
*/
free($2);
os_free($2);
}
| scopedName DOUBLECOLON identifier
{ $$ = q_append($1,q_newId($3));
/* frees dynamically malloced variable length string value
allocated by the lexical scanner.
*/
free($3);
os_free($3);
}
;

Expand Down Expand Up @@ -368,7 +368,7 @@ literal:
/* frees dynamically malloced variable length string value
allocated by the lexical scanner.
*/
free($1);
os_free($1);
}
| DOLLAR ulonglongLiteral
{ $$ = q_newVar($2);
Expand Down
10 changes: 5 additions & 5 deletions src/kernel/code/v_parser.y
Expand Up @@ -227,7 +227,7 @@ topicName:
ident
{ $$ = q_newId($1);
ut_stackPush(context->exprStack, $$);
free($1);
os_free($1);
}
;

Expand Down Expand Up @@ -354,14 +354,14 @@ field:
IDENTIFIER
{ $$ = q_newId($1);
ut_stackPush(context->exprStack, $$);
free($1);
os_free($1);
}
| FIELDNAME
{ q_list list = splitFieldname($1);
assert(list != NULL);
$$ = L1(Q_EXPR_PROPERTY,list); ;
ut_stackPush(context->exprStack, $$);
free($1);
os_free($1);
}
;

Expand Down Expand Up @@ -402,12 +402,12 @@ parameter:
| STRINGVALUE
{ $$ = q_newStr($1);
ut_stackPush(context->exprStack, $$);
free($1);
os_free($1);
}
| ENUMERATEDVALUE
{ $$ = q_newStr($1);
ut_stackPush(context->exprStack, $$);
free($1);
os_free($1);
}
| PARAM
{ $$ = q_newVar($1);
Expand Down

0 comments on commit c973ae0

Please sign in to comment.