From 7adbd1939f9ff3e8841e0a447b6bbcfab45e419f Mon Sep 17 00:00:00 2001 From: Marcos Medeiros Date: Wed, 28 Dec 2016 18:11:16 -0200 Subject: [PATCH] Update lcd.c Free LCD handle slot. --- devLib/lcd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devLib/lcd.c b/devLib/lcd.c index 512f049..24910a9 100644 --- a/devLib/lcd.c +++ b/devLib/lcd.c @@ -505,6 +505,7 @@ void lcdFree (const int fd) { if ((fd >= 0) && (fd < MAX_LCDS)) { + free(lcds[fd]); lcds[fd] = NULL; } -} \ No newline at end of file +}