fix: mem free
This commit is contained in:
parent
8411f25a2b
commit
bac72b2dd2
|
@ -1230,6 +1230,8 @@ static regex_t *threadGetRegComp(const char *pPattern) {
|
||||||
regerror(ret, &pRegex, msgbuf, tListLen(msgbuf));
|
regerror(ret, &pRegex, msgbuf, tListLen(msgbuf));
|
||||||
uError("Failed to compile regex pattern %s. reason %s", pPattern, msgbuf);
|
uError("Failed to compile regex pattern %s. reason %s", pPattern, msgbuf);
|
||||||
regfree(&pRegex);
|
regfree(&pRegex);
|
||||||
|
taosMemoryFree(pOldPattern);
|
||||||
|
pOldPattern == NULL;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return &pRegex;
|
return &pRegex;
|
||||||
|
|
Loading…
Reference in New Issue