diff options
author | miod <> | 2014-05-22 21:12:16 +0000 |
---|---|---|
committer | miod <> | 2014-05-22 21:12:16 +0000 |
commit | c34fac2dfaf2da90889ed845a5139c916868eea2 (patch) | |
tree | fd278ca4aaae51bbb11f6b3d67d862d9827370bc /src/lib/libcrypto/ui/ui_lib.c | |
parent | 5f35ad01d525b3834ce610866244a942ee37c441 (diff) | |
download | openbsd-c34fac2dfaf2da90889ed845a5139c916868eea2.tar.gz openbsd-c34fac2dfaf2da90889ed845a5139c916868eea2.tar.bz2 openbsd-c34fac2dfaf2da90889ed845a5139c916868eea2.zip |
if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully
eyeballed before applying. Contributed by Cyril Roelandt on tech@
Diffstat (limited to 'src/lib/libcrypto/ui/ui_lib.c')
-rw-r--r-- | src/lib/libcrypto/ui/ui_lib.c | 12 |
1 files changed, 4 insertions, 8 deletions
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, | |||
328 | result_buf); | 328 | result_buf); |
329 | 329 | ||
330 | err: | 330 | err: |
331 | if (prompt_copy) | 331 | free(prompt_copy); |
332 | free(prompt_copy); | 332 | free(action_desc_copy); |
333 | if (action_desc_copy) | 333 | free(ok_chars_copy); |
334 | free(action_desc_copy); | 334 | free(cancel_chars_copy); |
335 | if (ok_chars_copy) | ||
336 | free(ok_chars_copy); | ||
337 | if (cancel_chars_copy) | ||
338 | free(cancel_chars_copy); | ||
339 | return -1; | 335 | return -1; |
340 | } | 336 | } |
341 | 337 | ||