From 8356664d5231d640d1d359f0405077397dc48134 Mon Sep 17 00:00:00 2001 From: David L Parkhurst Date: Fri, 21 Apr 2006 22:37:51 +0000 Subject: [PATCH] workds on serial and parallel using StorageBin for uz, sz, and phreeqc git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@878 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- StorageBin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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