mraa.c: Fixed memleak of device_path for IEI_TANK
Unfortunately the device_path char* is dynamically allocated and #defined and const char *'ed depending on how each platform provided the uart device paths which makes cleaning it up more complicated. Added a check for the IEI_TANK. Removed the char** (in favor of a char*) for mraa_find_uart_bus_pci.) Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@@ -176,7 +176,7 @@ int mraa_find_i2c_bus_pci(const char* pci_device, const char *pci_id, const char
|
||||
* @param dev_name as retrieved from pci_dev_path
|
||||
* @return Result of the operation
|
||||
*/
|
||||
mraa_result_t mraa_find_uart_bus_pci(const char* pci_dev_path, char** dev_name);
|
||||
mraa_result_t mraa_find_uart_bus_pci(const char* pci_dev_path, char* dev_name);
|
||||
|
||||
#if defined(IMRAA)
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user