Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNxjl-00039M-Ar for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Sep 2021 13:35:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mNxjk-0007JR-22 for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Sep 2021 13:35:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNxjj-0007JJ-Rm for pgsql-bugs@lists.postgresql.org; Wed, 08 Sep 2021 13:35:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNxjh-0006Ln-Ph for pgsql-bugs@lists.postgresql.org; Wed, 08 Sep 2021 13:35:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 188DZVfp3261759; Wed, 8 Sep 2021 09:35:31 -0400 From: Tom Lane To: kaegoorn48@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17184: When using openssl, the memory of a static variable is not freed in libpq In-reply-to: <17184-8819e0faad281a1d@postgresql.org> References: <17184-8819e0faad281a1d@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 08 Sep 2021 07:21:18 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3261757.1631108131.1@sss.pgh.pa.us> Date: Wed, 08 Sep 2021 09:35:31 -0400 Message-ID: <3261758.1631108131@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > Valgrind shows static variable memory is not freed when using openssl > libpq/fe-secure-openssl.c:1571 > static BIO_METHOD *my_bio_methods; > Please add a method that will free memory after use Why? It's not leaked: the struct is still available for use in future connection attempts. regards, tom lane