src/processor/bugsnag_stackwalk_wrapper.cc
// Wraps strdup and throws an error if memory allocation fails
Wraps strdup and throws an error if memory allocation fails
Wraps strdup and throws an error if memory allocation fails
static char* duplicate(const std::string& s) {
  char* str = strdup(s.c_str());
  if (!str) {
    throw std::bad_alloc();
  }
  return str;
}
static char * duplicate ( const std :: string & s ) { char * str = strdup ( s . c_str ( ) ) ; if ( ! str ) { throw std :: bad_alloc ( ) ; } return str ; }
Wraps strdup and throws an error if memory allocation fails
Wraps strdup and throws an error if memory allocation fails