From ec783cbf196118ce252f026e748aa1519ed2c2f9 Mon Sep 17 00:00:00 2001 From: Leon P Smith Date: Thu, 19 Nov 2015 17:56:57 -0500 Subject: [PATCH] Fix a memory leak in disableNoticeReporting de0aff5f94641c2d675d379a2f77c8f1ddbc2e5f turned a potentially large memory leak that might not be a leak at all into a guaranteed small leak whenever you call disableNoiceReporting on a connection that was in the enableNoticeReporting state. --- cbits/noticehandlers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cbits/noticehandlers.c b/cbits/noticehandlers.c index c1d370a..c4bc738 100644 --- a/cbits/noticehandlers.c +++ b/cbits/noticehandlers.c @@ -56,4 +56,5 @@ hs_postgresql_libpq_free_noticebuffer (NoticeBuffer * arg) { free(x); x = nx; } + free(arg); }