summaryrefslogtreecommitdiff
path: root/src/library.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.c')
-rw-r--r--src/library.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/library.c b/src/library.c
index 8cbc949..3c058ef 100644
--- a/src/library.c
+++ b/src/library.c
@@ -263,8 +263,7 @@ XcursorScanTheme (const char *theme, const char *name)
*/
for (i = inherits; i && f == 0; i = _XcursorNextPath (i))
f = XcursorScanTheme (i, name);
- if (inherits)
- free (inherits);
+ free (inherits);
return f;
}