Skip to content

Commit

Permalink
Fix a memory leak in disableNoticeReporting
Browse files Browse the repository at this point in the history
de0aff5 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.
  • Loading branch information
lpsmith committed Nov 19, 2015
1 parent 767c385 commit ec783cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cbits/noticehandlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ hs_postgresql_libpq_free_noticebuffer (NoticeBuffer * arg) {
free(x);
x = nx;
}
free(arg);
}

0 comments on commit ec783cb

Please sign in to comment.