aboutsummaryrefslogtreecommitdiffstats
path: root/examples/print-tty.c
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2021-01-25 00:39:58 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2021-01-25 00:40:31 +0100
commitb5682c57099c285ccc7cabdf59b00d431981ea6a (patch)
treeb031a84762c4bf67d6faf1d07a18e2b696fd7822 /examples/print-tty.c
parentfc9de36f333448405ade402e2ebaaaae3075d82c (diff)
downloadembedlog-b5682c57099c285ccc7cabdf59b00d431981ea6a.tar.gz
embedlog-b5682c57099c285ccc7cabdf59b00d431981ea6a.tar.bz2
embedlog-b5682c57099c285ccc7cabdf59b00d431981ea6a.zip
examples: add missing el_cleanup() to some examples
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
Diffstat (limited to 'examples/print-tty.c')
-rw-r--r--examples/print-tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/print-tty.c b/examples/print-tty.c
index ec90d01..889afe3 100644
--- a/examples/print-tty.c
+++ b/examples/print-tty.c
@@ -27,6 +27,7 @@ int main(void)
if (el_option(EL_TTY_DEV, "/dev/ttyUSB1", B9600) != 0)
{
perror("tty set failed");
+ el_cleanup();
return 1;
}