fix: mem leak

This commit is contained in:
iceman1001 2019-02-24 19:25:44 +01:00
parent 8e01c9899f
commit 8512c0ea09

View file

@ -83,6 +83,7 @@ serial_port uart_open(const char* pcPortName) {
if (addrstr == NULL) {
printf("Error: strdup\n");
free(sp);
return INVALID_SERIAL_PORT;
}