Eliminate unnecessary _free() usages in python
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 9 Mar 2011 13:26:54 +0000 (15:26 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 9 Mar 2011 13:26:54 +0000 (15:26 +0200)
python/header-py.c

index 98ecac9..1d37c29 100644 (file)
@@ -173,7 +173,7 @@ static PyObject * hdrUnload(hdrObject * s, PyObject * args, PyObject *keywords)
     }
 
     rc = PyBytes_FromStringAndSize(buf, len);
-    buf = _free(buf);
+    free(buf);
 
     return rc;
 }
@@ -234,7 +234,7 @@ static PyObject * hdrFormat(hdrObject * s, PyObject * args, PyObject * kwds)
     }
 
     result = Py_BuildValue("s", r);
-    r = _free(r);
+    free(r);
 
     return result;
 }