From 806d671c54a003b3908609ac768730d0f57d6ed0 Mon Sep 17 00:00:00 2001 From: Nir Soffer Date: Jun 17 2019 14:04:28 +0000 Subject: 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 --- 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;