diff --git a/StorageBin.cxx b/StorageBin.cxx index d3c8eb3b..98ba848b 100644 --- a/StorageBin.cxx +++ b/StorageBin.cxx @@ -505,7 +505,8 @@ struct system *cxxStorageBin::cxxStorageBin2system(int n) // make a system from storagebin // { - struct system *system_ptr = new (struct system); + struct system *system_ptr = (struct system *) PHRQ_malloc(sizeof(struct system)); + if (system_ptr == NULL) malloc_error(); // Solutions