[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [umbrello] umbrello/codegenerators: Coverity check on master@bd16929, CID 71391: Resource leak in ob
From:       Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date:       2014-10-27 23:15:11
Message-ID: E1XitVH-0006p3-QT () scm ! kde ! org
[Download RAW message or body]

Git commit 949374276250a54a9b3ef042fd3ea87ed3b1a77d by Oliver Kellogg.
Committed on 27/10/2014 at 22:48.
Pushed by okellogg into branch 'master'.

Coverity check on master@bd16929, CID 71391: Resource leak in object

umbrello/codegenerators/codeblockwithcomments.cpp
> CTOR_DTOR_LEAK
> The constructor allocates field m_comment of CodeBlockWithComments but
> the destructor and whatever functions it calls do not free it.

M  +1    -0    umbrello/codegenerators/codeblockwithcomments.cpp

http://commits.kde.org/umbrello/949374276250a54a9b3ef042fd3ea87ed3b1a77d

diff --git a/umbrello/codegenerators/codeblockwithcomments.cpp b/umbrello/c=
odegenerators/codeblockwithcomments.cpp
index 34e5360..0990494 100644
--- a/umbrello/codegenerators/codeblockwithcomments.cpp
+++ b/umbrello/codegenerators/codeblockwithcomments.cpp
@@ -30,6 +30,7 @@ CodeBlockWithComments::CodeBlockWithComments (CodeDocumen=
t * parent, const QStri
 =

 CodeBlockWithComments::~CodeBlockWithComments ()
 {
+    delete m_comment;
 }
 =

 /**

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic