fix memory leak in picolcd driver (Nicu Pavel)
This commit is contained in:
1 parent
3017cacd24
commit
1824b93998
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user