From f75ba2f91a52aa3805f2b8699db23d4309f9ffa8 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Mon, 18 Nov 2019 08:40:13 -0800 Subject: [PATCH] Clean up refleak in module initialization. --- Modules/fcntlmodule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 1e5b0f7faea6fb..11906aa5829296 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -668,8 +668,10 @@ PyInit_fcntl(void) return NULL; /* Add some symbolic constants to the module */ - if (all_ins(m) < 0) + if (all_ins(m) < 0) { + Py_DECREF(m); return NULL; + } return m; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy