Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68c465ad authored by Thomas Jarosch's avatar Thomas Jarosch Committed by Arnaldo Carvalho de Melo
Browse files

perf tools: Fix possible double free on error



Can only be triggered via CROSS_COMPILE env var.

Detected by cppcheck.

Signed-off-by: default avatarThomas Jarosch <thomas.jarosch@intra2net.com>
Link: http://lkml.kernel.org/r/36736865.AIlztKhDqN@storm


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent e3541ec7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@ static int perf_session_env__lookup_binutils_path(struct perf_session_env *env,
		if (lookup_path(buf))
			goto out;
		free(buf);
		buf = NULL;
	}

	if (!strcmp(arch, "arm"))