Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
CheckMemoryLeak: moved 'popen' into posix scope
  • Loading branch information
danmar committed Apr 18, 2014
1 parent 56eb717 commit b909aa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/checkmemoryleak.cpp
Expand Up @@ -174,10 +174,10 @@ CheckMemoryLeak::AllocType CheckMemoryLeak::getAllocationType(const Token *tok2,
return No;
return Fd;
}
}

if (Token::simpleMatch(tok2, "popen ("))
return Pipe;
if (Token::simpleMatch(tok2, "popen ("))
return Pipe;
}

// Does tok2 point on "g_malloc", "g_strdup", ..
const int alloctype = settings1->library.alloc(tok2->str());
Expand Down

0 comments on commit b909aa0

Please sign in to comment.