Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752562AbbI3CDW (ORCPT ); Tue, 29 Sep 2015 22:03:22 -0400 Received: from pubmail.iscas.ac.cn ([124.16.136.252]:54465 "EHLO iscas.ac.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752022AbbI3CDT (ORCPT ); Tue, 29 Sep 2015 22:03:19 -0400 X-Greylist: delayed 332 seconds by postgrey-1.27 at vger.kernel.org; Tue, 29 Sep 2015 22:03:19 EDT From: Heloise NH To: a.p.zijlstra@chello.nl, paulus@samba.org, mingo@redhat.com, acme@ghostprotocols.net Cc: os@iscas.ac.cn, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] trace-event-python.c used malloc without checking ptr if NULL Date: Wed, 30 Sep 2015 09:57:30 +0800 Message-Id: <1443578250-9830-1-git-send-email-os@iscas.ac.cn> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Heloise NH --- tools/perf/util/scripting-engines/trace-event-python.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index cff58ae..14d8e73 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c @@ -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; } -- 1.9.1