Skip to content

Commit

Permalink
Fix clang static analyzer warnings.
Browse files Browse the repository at this point in the history
frameworks/native/cmds/flatland/GLHelper.cpp:366:9: warning: Potential
leak of memory pointed to by 'src'

Test: Warning no longer appears
Change-Id: I2721d292cf1f387f34fb2e69f8370f1abff3f01f
  • Loading branch information
m-gupta authored and task650 committed Jan 24, 2017
1 parent 76c1d40 commit f18ee65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmds/flatland/GLHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ static bool compileShaderLines(GLenum shaderType, const char* const* lines,
if (!result) {
fprintf(stderr, "Shader source:\n");
printShaderSource(lines);
delete[] src;
return false;
}
delete[] src;
Expand Down

0 comments on commit f18ee65

Please sign in to comment.