Skip to content

Commit

Permalink
Bug 735441 - [PATCH] Fix a resource leak in src/vhdldocgen.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Aug 30, 2014
1 parent 8f3e7fc commit 22e4485
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/vhdldocgen.cpp
Expand Up @@ -479,7 +479,11 @@ static QList<MemberDef>* getPorts(ClassDef *cd)
QList<MemberDef> *portList=new QList<MemberDef>;
MemberList *ml=cd->getMemberList(MemberListType_variableMembers);

if (ml==0) return NULL;
if (ml==0)
{
delete portList;
return 0;
}

MemberListIterator fmni(*ml);

Expand Down

0 comments on commit 22e4485

Please sign in to comment.