fix: mem leak

This commit is contained in:
iceman1001 2019-02-21 23:35:03 +01:00
parent 7ea7061ed0
commit 439f767b4d

View file

@ -102,6 +102,7 @@ serial_port uart_open(const char* pcPortName) {
printf("Error: getaddrinfo: %s\n", gai_strerror(s));
freeaddrinfo(addr);
free(addrstr);
free(sp);
return INVALID_SERIAL_PORT;
}