desktop/source/lib/init.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 7512f1e1867672c06d987a94edb07f0a7ea0fc1e
Author: Caolán McNamara <caol...@redhat.com>
Date:   Fri Aug 19 11:45:40 2016 +0100

    coverity#1371375 Resource leak
    
    Change-Id: I53b5ddc26e77168c29ba1bcfd199b1accbc54d3a

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index ab7b557..e038437 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1858,7 +1858,8 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* 
pThis, const char* pComma
 
             std::stringstream aStream;
             boost::property_tree::write_json(aStream, aTree);
-            
pDocument->mpCallbackFlushHandlers[nView]->queue(LOK_CALLBACK_UNO_COMMAND_RESULT,
 strdup(aStream.str().c_str()));
+            OString aPayload = aStream.str().c_str();
+            
pDocument->mpCallbackFlushHandlers[nView]->queue(LOK_CALLBACK_UNO_COMMAND_RESULT,
 aPayload.getStr());
             return;
         }
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to