Skip to content

Commit

Permalink
Add clean up htab
Browse files Browse the repository at this point in the history
  • Loading branch information
munakoiso committed Oct 23, 2020
1 parent f3cd518 commit 1ea4320
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logerrors.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ pg_log_errors_stats(PG_FUNCTION_ARGS)
/* long interval counters */
put_values_to_tuple(current_interval_index, global_variables->intervals_count, counters_hashtable, tupdesc,
tupstore);
/* clean up */
hash_destroy(counters_hashtable);
/* return the tuplestore */
tuplestore_donestoring(tupstore);
return (Datum) 0;
Expand Down

0 comments on commit 1ea4320

Please sign in to comment.