diff options
author | 2010-07-31 00:55:23 +0200 | |
---|---|---|
committer | 2010-07-31 00:55:23 +0200 | |
commit | 049343b77475e616cfbf730a7331fdc362ee6e45 (patch) | |
tree | e633909d186633eadeedd90cf3e217585b4293ce | |
parent | Fix strdup inclusion (diff) | |
download | c-portage-049343b77475e616cfbf730a7331fdc362ee6e45.tar.gz c-portage-049343b77475e616cfbf730a7331fdc362ee6e45.tar.bz2 c-portage-049343b77475e616cfbf730a7331fdc362ee6e45.zip |
Fix calling get_allnodes instead of get_all_nodes
-rw-r--r-- | src/dataconnect.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/dataconnect.c b/src/dataconnect.c index 8dacdcc..110e369 100644 --- a/src/dataconnect.c +++ b/src/dataconnect.c @@ -93,6 +93,7 @@ char* portageBestVersion(StringList *pkgs) } char *ret = pyStringToString(obj); + Py_DECREF(obj); return ret; @@ -112,10 +113,7 @@ char* portageGetBestEbuild(const char *pkg) } char *ret = pyStringToString(obj); - //PyObject *tmp = PyUnicode_AsUTF8String(obj); - //char *ret = strdup(PyString_AsString(tmp)); - - //Py_DECREF(tmp); + Py_DECREF(obj); return ret; @@ -362,7 +360,7 @@ StringList* portageGetUnresolvedPkgs() StringList* portageGetAllNodes() { - PyObject *obj = executeFunction("portage.api.data_connect", "get_all_nodes", NULL); + PyObject *obj = executeFunction("portage.api.data_connect", "get_allnodes", NULL); if (!obj || !PySequence_Check(obj)) { if (obj) |