commit | 79db6da87f9c71bce3c790dd42524992ea5e40f3 | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Mon Nov 14 22:57:12 2016 +0100 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Tue Nov 15 11:11:25 2016 -0500 |
tree | 23f64bb1815848bc105e00944e43ac31a14f18e0 | |
parent | db17f12273adf7bdee4c7d86ac4d71cc8bd78d4f [diff] |
libselinux, libsemanage: swig: use SWIG_fail when an error occurs Using SWIG_fail in the Python SWIG wrappers makes the wrapping function destroy/free the memory which could have been dynamically allocated before calling the wrapped function. This thus prevents possible memory leaks in the wrappers of set*con(), set*con_raw(), security_compute_*(), etc. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>