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
+2 -1
View File
@@ -535,12 +535,13 @@ 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;
}
}
free(keydata);
free(keydata);
debug(RPT_DEBUG, "picolcd: get_key complete (%s)", keystr);