Serial RPC Interface using the MODSERIAL library. Does not hang when serial port misbehaves.

Files at this revision

API Documentation at this revision

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
--- 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){