diff options
Diffstat (limited to 'python-ethtool/ethtool.c')
-rw-r--r-- | python-ethtool/ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c index 7d2a243..e37bcf1 100644 --- a/python-ethtool/ethtool.c +++ b/python-ethtool/ethtool.c @@ -281,7 +281,7 @@ static PyObject *get_interfaces_info(PyObject *self __unused, PyObject *args) { /* Store the device name and a reference to the NETLINK connection for * objects to use when quering for device info */ - ethinfo->device = strdup(fetch_devs[i]); + ethinfo->device = PyString_FromString(fetch_devs[i]); ethinfo->index = -1; /* Instantiate a new etherinfo object with the device information */ |