Serial RPC Interface using the MODSERIAL library. Does not hang when serial port misbehaves.
Diff: RPCFunction.cpp
- Revision:
- 3:d5d7e52769e7
- Parent:
- 0:66e48adbb27b
--- 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){