Building Statement List: MALLOC. Bug fix (strdup is a malloc)
This commit is contained in:
parent
0d5d4f299a
commit
c3efd64b27
4
main.cpp
4
main.cpp
|
@ -687,9 +687,9 @@ void CreateStatementList()
|
||||||
TOKEN *rs = eq->next;
|
TOKEN *rs = eq->next;
|
||||||
|
|
||||||
bool ismalloc = false;
|
bool ismalloc = false;
|
||||||
if ( rs->str[0] == '(' )
|
ismalloc |= match(rs, "strdup (");
|
||||||
|
if (rs->str[0]=='(' && IsName(getstr(rs,1)))
|
||||||
{
|
{
|
||||||
ismalloc |= match(rs, "strdup (");
|
|
||||||
ismalloc |= match(rs, "( type * ) malloc (");
|
ismalloc |= match(rs, "( type * ) malloc (");
|
||||||
ismalloc |= match(rs, "( type * * ) malloc (");
|
ismalloc |= match(rs, "( type * * ) malloc (");
|
||||||
ismalloc |= match(rs, "( type type * ) malloc (");
|
ismalloc |= match(rs, "( type type * ) malloc (");
|
||||||
|
|
Loading…
Reference in New Issue