fix: fix memory leak.
This commit is contained in:
parent
9ff749be73
commit
4b50edccf0
|
@ -276,6 +276,8 @@ int32_t taosGetPIdByName(const char* name, int32_t* pPId) {
|
|||
}
|
||||
}
|
||||
|
||||
closedir(dir);
|
||||
|
||||
if ((*pPId) == -1) {
|
||||
return TAOS_SYSTEM_ERROR(ESRCH);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue