From fafa689baa74eb95ccee82ba8d6517e58bc1cedb Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Fri, 18 Oct 2024 14:53:00 +0500 Subject: [PATCH] optimize --- src/quotamodel.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/quotamodel.c b/src/quotamodel.c index f5b84f39..79e3b802 100644 --- a/src/quotamodel.c +++ b/src/quotamodel.c @@ -966,6 +966,8 @@ calculate_table_disk_usage(bool is_init) { reltablespace = MyDatabaseTableSpace; } + + heap_freetuple(classTup); } else { @@ -1112,10 +1114,6 @@ calculate_table_disk_usage(bool is_init) tsentry->tablespaceoid = reltablespace; } } - if (HeapTupleIsValid(classTup)) - { - heap_freetuple(classTup); - } } if (delete_entries_num) delete_from_table_size_map(delete_statement.data);