From 31181df3ca3b68e1419bc9a97e4aee92a5f91f73 Mon Sep 17 00:00:00 2001 From: miod <> Date: Thu, 22 May 2014 21:12:16 +0000 Subject: if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully eyeballed before applying. Contributed by Cyril Roelandt on tech@ --- src/lib/libcrypto/ui/ui_lib.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/lib/libcrypto/ui') diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index 5335b59c48..0d3a960052 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c @@ -328,14 +328,10 @@ UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc, result_buf); err: - if (prompt_copy) - free(prompt_copy); - if (action_desc_copy) - free(action_desc_copy); - if (ok_chars_copy) - free(ok_chars_copy); - if (cancel_chars_copy) - free(cancel_chars_copy); + free(prompt_copy); + free(action_desc_copy); + free(ok_chars_copy); + free(cancel_chars_copy); return -1; } -- cgit v1.2.3-55-g6feb