Serial RPC Interface using the MODSERIAL library. Does not hang when serial port misbehaves.
Revision 3:d5d7e52769e7, committed 2011-02-04
- Comitter:
- zainulcharbiwala
- Date:
- Fri Feb 04 01:54:41 2011 +0000
- Parent:
- 2:e26e61ea802b
- Commit message:
- Added Hexley Ball\s fix for memory leak in RFCFunction
Changed in this revision
RPCFunction.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r e26e61ea802b -r d5d7e52769e7 RPCFunction.cpp --- a/RPCFunction.cpp Fri Feb 04 01:48:33 2011 +0000 +++ b/RPCFunction.cpp Fri Feb 04 01:54:41 2011 +0000 @@ -81,6 +81,7 @@ if(result != NULL) { write_result<char*>(res, result); } + delete arg1; // Seems to stop a memory leak issue //From Hexley Ball } RPCFunction::RPCFunction(void(*f)(char*, char*), const char* name) : Base(name){