From c0c4e2446ffca88aed27726fd28f99470fb85d40 Mon Sep 17 00:00:00 2001 From: nima Date: Thu, 24 Jul 2008 12:02:12 +0000 Subject: Some cleaning, crash in interactive mode on dmidecode.bios() still not fixed. git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@13 abc39116-655e-4be6-ad55-d661dc543056 --- dmidecodemodule.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dmidecodemodule.c') diff --git a/dmidecodemodule.c b/dmidecodemodule.c index 10ee9fc..5b6f63a 100644 --- a/dmidecodemodule.c +++ b/dmidecodemodule.c @@ -4,9 +4,9 @@ static PyObject* dmidecode_get(PyObject *self, char* section) { //mtrace(); - Py_SetProgramName("dmidecode"); - /* + /* This is `embedding API', not applicable to this dmidecode module which is `Extending' + Py_SetProgramName("dmidecode"); int argc = 3; char *argv[4]; argv[0] = "dmidecode"; @@ -35,7 +35,6 @@ static PyObject* dmidecode_get(PyObject *self, char* section) { if(opt.type==NULL) return NULL; PyObject* pydata = PyDict_New(); - Py_INCREF(pydata); /* First try EFI (ia64, Intel-based Mac) */ char efiAddress[32]; -- cgit