Kaydet (Commit) 87111f26 authored tarafından Colomban Wendling's avatar Colomban Wendling

Ferite: Fix a memory leak

üst 7ae1d031
......@@ -1440,7 +1440,7 @@ static void makeTag (const tokenInfo *const token,
if (isType (token, TOKEN_NAME) && vStringLength (token->name) > 0 /* &&
includeTag (type, isFileScope) */)
{
vString *scope = vStringNew ();
vString *scope;
tagEntryInfo e;
/* take only functions which are introduced by "function ..." */
......@@ -1456,6 +1456,7 @@ static void makeTag (const tokenInfo *const token,
e.filePosition = token->filePosition;
e.isFileScope = isFileScope;
scope = vStringNew ();
findScopeHierarchy (scope, st);
addOtherFields (&e, type, token, st, scope);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment