diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-15 10:37:51 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-02-15 10:37:51 +0000 |
commit | 8fe484f90303daf5a2cd4a34962a10367e7bfd31 (patch) | |
tree | 569154c6ffa161b20491e93340917f2383a239a6 /bindings/python/lang.py | |
parent | 95f3c0625f5fe2c4f0c88e6309eb109325996a9c (diff) | |
download | lasso-8fe484f90303daf5a2cd4a34962a10367e7bfd31.tar.gz lasso-8fe484f90303daf5a2cd4a34962a10367e7bfd31.tar.xz lasso-8fe484f90303daf5a2cd4a34962a10367e7bfd31.zip |
Binding python: fix leak in string getters
Diffstat (limited to 'bindings/python/lang.py')
-rw-r--r-- | bindings/python/lang.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/lang.py b/bindings/python/lang.py index e69248a9..d71fc438 100644 --- a/bindings/python/lang.py +++ b/bindings/python/lang.py @@ -698,7 +698,7 @@ register_constants(PyObject *d) print >> fd, ' this = (%s*)cvt_this->obj;' % klassname if is_cstring(m): - print >> fd, ' return_value = g_strdup(this->%s);' % arg_name(m) + print >> fd, ' return_value = this->%s;' % arg_name(m) elif is_object(m): print >> fd, ' return_value = this->%s;' % m[1]; else: |