summaryrefslogtreecommitdiff
path: root/lib/libcrypto/dso/dso_dlfcn.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/dso/dso_dlfcn.c')
-rw-r--r--lib/libcrypto/dso/dso_dlfcn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/dso/dso_dlfcn.c b/lib/libcrypto/dso/dso_dlfcn.c
index bebfdcdbc41..87ebdb660d3 100644
--- a/lib/libcrypto/dso/dso_dlfcn.c
+++ b/lib/libcrypto/dso/dso_dlfcn.c
@@ -146,8 +146,7 @@ dlfcn_load(DSO *dso)
err:
/* Cleanup! */
- if (filename != NULL)
- free(filename);
+ free(filename);
if (ptr != NULL)
dlclose(ptr);
return (0);