connector: fix socket leak
Quoted 3 lines · ycaibb
In
main()ofucon.c, the socket may not be closed whensend_msgsis true.Signed-off-by ycaibb <[email protected]>
Please use your full name.
Quoted 9 lines
--- samples/connector/ucon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)samples/connector/ucon.c +0
-0
samples/connector/ucon.c int main(int argc, char *argv[]) · line 183
Quoted 5 lines
samples/connector/ucon.c +1
-1@@ -180,7 +180,8 @@ int main(int argc, char *argv[])ulog ("%d messages have been sent to %08x.%08x.\n" , i, data->id.idx, data->id.val); } - +
Always run your patches through scripts/checkpatch.pl before sending them out.
thanks,
greg k-h