]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't define _PyMem_PymallocEnabled() if pymalloc is disabled
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Apr 2016 15:02:55 +0000 (17:02 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Apr 2016 15:02:55 +0000 (17:02 +0200)
Isse #26516.

Objects/obmalloc.c

index 40c9fcdec9361324a17251e532a86b69d824393f..6cf8ea90184c3b26c68159ef3e1e38f7af368959 100644 (file)
@@ -286,13 +286,13 @@ static PyObjectArenaAllocator _PyObject_Arena = {NULL,
 #endif
     };
 
+#ifdef WITH_PYMALLOC
 static int
 _PyMem_DebugEnabled(void)
 {
     return (_PyObject.malloc == _PyMem_DebugMalloc);
 }
 
-#ifdef WITH_PYMALLOC
 int
 _PyMem_PymallocEnabled(void)
 {