summaryrefslogtreecommitdiff
path: root/lib/libcrypto/store/str_mem.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-05-22 21:12:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-05-22 21:12:17 +0000
commite4cd58f507fd46d613ab7dfd04bff18eeb5b8b95 (patch)
tree0104aca4bba9f2c5c1040b5537390d7b77b0d2d2 /lib/libcrypto/store/str_mem.c
parente2aa95bd3f6319316d751c070fdd1173ea6432df (diff)
if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully
eyeballed before applying. Contributed by Cyril Roelandt on tech@
Diffstat (limited to 'lib/libcrypto/store/str_mem.c')
-rw-r--r--lib/libcrypto/store/str_mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/store/str_mem.c b/lib/libcrypto/store/str_mem.c
index a73279c86b5..7e2346d93df 100644
--- a/lib/libcrypto/store/str_mem.c
+++ b/lib/libcrypto/store/str_mem.c
@@ -333,7 +333,7 @@ static int mem_list_end(STORE *s, void *handle)
}
if (context && context->search_attributes)
sk_STORE_ATTR_INFO_free(context->search_attributes);
- if (context) free(context);
+ free(context);
return 1;
}
static int mem_list_endp(STORE *s, void *handle)