This is an automated email from the git hooks/post-receive script.
nsoffer pushed a commit to branch master
in repository sanlock.
commit 806d671c54a003b3908609ac768730d0f57d6ed0
Author: Nir Soffer <nsoffer(a)redhat.com>
AuthorDate: Fri Jun 14 22:01:30 2019 +0300
python: Remove unneeded check for null
When calling free() we don't need to check if a point is NULL.
Signed-off-by: Nir Soffer <nsoffer(a)redhat.com>
---
python/sanlock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/sanlock.c b/python/sanlock.c
index ed9de0f..4c3e0a0 100644
--- a/python/sanlock.c
+++ b/python/sanlock.c
@@ -1027,7 +1027,7 @@ py_get_lockspaces(PyObject *self __unused, PyObject *args, PyObject
*keywds)
/* failure */
exit_fail:
- if (lss) free(lss);
+ free(lss);
Py_XDECREF(ls_entry);
Py_XDECREF(ls_list);
return NULL;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date