Skip to content

Commit 6d09752

Browse files
peterisrtresf
authored andcommitted
Fix memory leak in getFlowControlMode()
1 parent f88bc56 commit 6d09752

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cpp/_nix_based/jssc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_getFlowControlMode
621621
returnValue |= FLOWCONTROL_XONXOFF_OUT;
622622
}
623623
}
624+
delete settings;
624625
return returnValue;
625626
}
626627

0 commit comments

Comments
 (0)