trace-event-python.c used malloc without checking ptr if NULL
PATCH 1/1 trace-event-python.c used malloc without checking ptr if NULL
Signed-off-by Heloise NH <[email protected]>
--- tools/perf/util/scripting-engines/trace-event-python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/scripting-engines/trace-event-python.c +1 -1
@@ -475,7 +475,7 @@ static int python_start_script(const char *script, int argc, const char **argv)FILE *fp; command_line =malloc ((argc +1 ) *sizeof (const char *)); -if (command_line ==NULL ){ +if (command_line ==NULL ) { err =-1 ; goto error; }
Signature · 1 line
1.9.1