Re: pgsql: Properly unregister OpenSSL callbacks when libpq is done with - Mailing list pgsql-hackers

From Kris Jurka
Subject Re: pgsql: Properly unregister OpenSSL callbacks when libpq is done with
Date
Msg-id 493743A3.2010909@ejurka.com
Whole thread Raw
Responses Re: Re: pgsql: Properly unregister OpenSSL callbacks when libpq is done with  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
Magnus Hagander wrote:
> Log Message:
> -----------
> Properly unregister OpenSSL callbacks when libpq is done with
> it's connection. This is required for applications that unload
> the libpq library (such as PHP) in which case we'd otherwise
> have pointers to these functions when they no longer exist.

Breaks the build with --enable-thread-safety and --with-openssl because
of this typo.

Kris Jurka
*** 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;
          }
      }


pgsql-hackers by date:

Previous
From: "Koichi Suzuki"
Date:
Subject: Re: V2 of PITR performance improvement for 8.4
Next
From: Bruce Momjian
Date:
Subject: Re: Re: pgsql: Properly unregister OpenSSL callbacks when libpq is done with