summaryrefslogtreecommitdiffstats
path: root/typewrappers.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-09-06 19:08:26 +0100
committerDaniel P. Berrange <berrange@redhat.com>2013-09-09 16:42:01 +0100
commit48a38a040f61dcd5fe283036767b37155623c8ee (patch)
tree38f6d4e8168820a9f63fc6dbc031897078e82891 /typewrappers.c
parent4d0db39b41e6aa4f36c7bbe55799bfbc4ccec4ec (diff)
downloadlibvirt-python-split-48a38a040f61dcd5fe283036767b37155623c8ee.tar.gz
libvirt-python-split-48a38a040f61dcd5fe283036767b37155623c8ee.tar.xz
libvirt-python-split-48a38a040f61dcd5fe283036767b37155623c8ee.zip
Remove use of VIR_FREE from code
We don't have access to the libvirt memory APIs to replace VIR_FREE with free(). Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'typewrappers.c')
-rw-r--r--typewrappers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/typewrappers.c b/typewrappers.c
index 9b88f3f..91c32fc 100644
--- a/typewrappers.c
+++ b/typewrappers.c
@@ -86,7 +86,7 @@ libvirt_charPtrSizeWrap(char *str, Py_ssize_t size)
return Py_None;
}
ret = PyString_FromStringAndSize(str, size);
- VIR_FREE(str);
+ free(str);
return ret;
}
@@ -100,7 +100,7 @@ libvirt_charPtrWrap(char *str)
return Py_None;
}
ret = PyString_FromString(str);
- VIR_FREE(str);
+ free(str);
return ret;
}