fix: mem leak
This commit is contained in:
1 parent
8e01c9899f
commit
8512c0ea09
1 file changed
+1
@@ -83,6 +83,7 @@ serial_port uart_open(const char* pcPortName) {
|
||||
|
||||
if (addrstr == NULL) {
|
||||
printf("Error: strdup\n");
|
||||
free(sp);
|
||||
return INVALID_SERIAL_PORT;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user