mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
Merge pull request #94 from darkfronza/PG-203_possible_memory_leak
PG-203: Fix memory leak.
This commit is contained in:
@@ -1693,7 +1693,6 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
|
|||||||
uint64 planid = entry->key.planid;
|
uint64 planid = entry->key.planid;
|
||||||
uint64 appid = entry->key.appid;
|
uint64 appid = entry->key.appid;
|
||||||
unsigned char *buf = pgss_qbuf[bucketid];
|
unsigned char *buf = pgss_qbuf[bucketid];
|
||||||
char *query_txt = (char*) malloc(PGSM_QUERY_MAX_LEN);
|
|
||||||
#if PG_VERSION_NUM < 140000
|
#if PG_VERSION_NUM < 140000
|
||||||
bool is_allowed_role = is_member_of_role(GetUserId(), DEFAULT_ROLE_READ_ALL_STATS);
|
bool is_allowed_role = is_member_of_role(GetUserId(), DEFAULT_ROLE_READ_ALL_STATS);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user