Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /libperf_events/operf_mangling.cpp [ad3e04] .. [6ee980] Maximize Restore

  Switch to side-by-side view

--- a/libperf_events/operf_mangling.cpp
+++ b/libperf_events/operf_mangling.cpp
@@ -145,7 +145,11 @@
 
 	cverb << vsfile << "Opening \"" << mangled << "\"" << endl;
 
-	create_path(mangled);
+	err = create_path(mangled);
+	if (err) {
+		cerr << "operf: create path for " << mangled << " failed: " << strerror(err) << endl;
+		goto out;
+	}
 
 	/* locking sf will lock associated cg files too */
 	operf_sfile_get(sf);