[prev in list] [next in list] [prev in thread] [next in thread]
List: sanlock-devel
Subject: [sanlock] 10/14: python: Remove unneeded check for null
From: pagure () pagure ! io
Date: 2019-06-25 14:54:28
Message-ID: 20190625145418.97D03254706F () pagure01 ! fedoraproject ! org
[Download RAW message or body]
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@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@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.
_______________________________________________
sanlock-devel mailing list -- sanlock-devel@lists.fedorahosted.org
To unsubscribe send an email to sanlock-devel-leave@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/sanlock-devel@lists.fedorahosted.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic