*** a/src/interfaces/libpq/fe-secure.c
--- b/src/interfaces/libpq/fe-secure.c
***************
*** 918,925 **** destroy_ssl_system(void)
  			 * This means we leak a little memory on repeated load/unload
  			 * of the library.
  			 */
! 			free(pqlockarray);
! 			pqlockarray = NULL;
  		}
  	}
  
--- 918,925 ----
  			 * This means we leak a little memory on repeated load/unload
  			 * of the library.
  			 */
! 			free(pq_lockarray);
! 			pq_lockarray = NULL;
  		}
  	}
  
