SYSV IPC module maintainer?

Jonathan Corbet corbet-python at lwn.net
Thu Apr 10 12:36:27 EDT 2003


I'm using the Python module for SYSV shared memory and semaphores; it's
part of a twisted bit of code that lets me run Oasis banner ads on
LWN.net.  The module is great, but, as it turns out, it's also responsible
for a memory leak I've been chasing for quite some time.  So I tried
dropping a note to the author (Vladimir Marangozov) with a patch, but it
came bouncing right back to me.

So...my question is, is anybody active maintaining this module at this
point?  If not, maybe I'll put up a patched version somewhere so others
don't have to go through the same process.

Thanks,

jon

P.S.  I'll attach the patch, in case it's useful to anybody.

Jonathan Corbet
Executive editor, LWN.net
corbet at lwn.net


--- shmmodule.c.~1.1.~	2002-05-29 10:00:59.000000000 -0600
+++ shmmodule.c	2003-04-10 10:13:56.000000000 -0600
@@ -1101,6 +1101,7 @@
 	}
 	Py_DECREF(o);	/* the owned reference in shm_dict doesn't count! */
     }
+    Py_DECREF(keyo);
     /* set up the status data */
     if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) {
 	Py_DECREF(o);





More information about the Python-list mailing list