解决gs_ctl build内存泄漏问题

This commit is contained in:
骆洪斌
2020-09-28 19:01:21 +08:00
committed by Gitee
parent 62bf5cfc71
commit 1e46d9e9c5

View File

@ -5065,4 +5065,10 @@ static void free_ctl()
}
FREE_AND_RESET(register_password);
FREE_AND_RESET(pgha_str);
if (pgdata_opt != NULL && strcmp(pgdata_opt, "") != 0) {
FREE_AND_RESET(pgdata_opt);
}
if (pgha_opt != NULL && strcmp(pgha_opt, "") != 0) {
FREE_AND_RESET(pgha_opt);
}
}