fix memory leak in picolcd driver (Nicu Pavel)
This commit is contained in:
1 parent
3017cacd24
commit
1824b93998
1 file changed
+2
-1
@@ -535,12 +535,13 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
free(keydata);
|
free(keydata);
|
||||||
|
|
||||||
debug(RPT_DEBUG, "picolcd: get_key complete (%s)", keystr);
|
debug(RPT_DEBUG, "picolcd: get_key complete (%s)", keystr);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user