fix memory leak in picolcd driver (Nicu Pavel)

This commit is contained in:
marschap
2007-11-17 17:06:29 +00:00
parent 3017cacd24
commit 1824b93998
+1
View File
@@ -535,6 +535,7 @@ MODULE_EXPORT char *picoLCD_get_key(Driver *drvthis) {
} else {
debug(RPT_DEBUG, "picolcd: get_key got non-key data or timeout");
/* We got IR or otherwise bad data */
free(keydata);
return NULL;
}