fix memory leak in picolcd driver (Nicu Pavel)
This commit is contained in:
@@ -535,6 +535,7 @@ MODULE_EXPORT char *picoLCD_get_key(Driver *drvthis) {
|
|||||||
} else {
|
} else {
|
||||||
debug(RPT_DEBUG, "picolcd: get_key got non-key data or timeout");
|
debug(RPT_DEBUG, "picolcd: get_key got non-key data or timeout");
|
||||||
/* We got IR or otherwise bad data */
|
/* We got IR or otherwise bad data */
|
||||||
|
free(keydata);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user