[OpenSRF-GIT] OpenSRF branch master updated. 51dfd2c93ded26db5820201a1e43ed8e3cdb7d99

Evergreen Git git at git.evergreen-ils.org
Fri Mar 15 09:39:55 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSRF".

The branch, master has been updated
       via  51dfd2c93ded26db5820201a1e43ed8e3cdb7d99 (commit)
      from  0d6feed4b9ca2f7335aabcb55383a8a0270480b1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 51dfd2c93ded26db5820201a1e43ed8e3cdb7d99
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Fri Jan 18 13:12:35 2013 -0500

    LP#1101254: remove memory leak in HTTP translator
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/src/gateway/osrf_http_translator.c b/src/gateway/osrf_http_translator.c
index 2fed04a..f829fa0 100644
--- a/src/gateway/osrf_http_translator.c
+++ b/src/gateway/osrf_http_translator.c
@@ -331,7 +331,11 @@ static char* osrfHttpTranslatorParseRequest(osrfHttpTranslator* trans) {
         }
     }
 
-    return osrfMessageSerializeBatch(msgList, numMsgs);
+    char* jsonString = osrfMessageSerializeBatch(msgList, numMsgs);
+    for(i = 0; i < numMsgs; i++) {
+        osrfMessageFree(msgList[i]);
+    }
+    return jsonString;
 }
 
 static int osrfHttpTranslatorCheckStatus(osrfHttpTranslator* trans, transport_message* msg) {

-----------------------------------------------------------------------

Summary of changes:
 src/gateway/osrf_http_translator.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
OpenSRF


More information about the opensrf-commits mailing list