| Index: third_party/tcmalloc/chromium/src/heap-profile-table.cc
 | 
| diff --git a/third_party/tcmalloc/chromium/src/heap-profile-table.cc b/third_party/tcmalloc/chromium/src/heap-profile-table.cc
 | 
| index 6d75c4a49a861320dd2eb500e9a23058ef54fd07..a1da3885ef7864bd451fe2595df3fd2626c8c5d3 100644
 | 
| --- a/third_party/tcmalloc/chromium/src/heap-profile-table.cc
 | 
| +++ b/third_party/tcmalloc/chromium/src/heap-profile-table.cc
 | 
| @@ -431,7 +431,10 @@ bool HeapProfileTable::WriteProfile(const char* file_name,
 | 
|  void HeapProfileTable::CleanupOldProfiles(const char* prefix) {
 | 
|    if (!FLAGS_cleanup_old_heap_profiles)
 | 
|      return;
 | 
| -  string pattern = string(prefix) + ".*" + kFileExt;
 | 
| +  char buf[1000];
 | 
| +  snprintf(buf, 1000,"%s.%05d.", prefix, getpid());
 | 
| +  string pattern = string(buf) + ".*" + kFileExt;
 | 
| +
 | 
|  #if defined(HAVE_GLOB_H)
 | 
|    glob_t g;
 | 
|    const int r = glob(pattern.c_str(), GLOB_ERR, NULL, &g);
 | 
| 
 |