Britton Smith avatar Britton Smith committed 8a6af2a

Fixing some mismatched deletes.

Comments (0)

Files changed (1)

src/enzo/ExternalBoundary_ReadExternalBoundary.C

     strcpy(logname, hdfname);
     strcat(logname, ".log2");
     if (io_log) log_fptr = fopen(logname, "a");
-    delete logname;
+    delete [] logname;
  
     if (io_log) fprintf(log_fptr, "ReadEB start\n");
     if (io_log) fprintf(log_fptr, "  NumberOfBaryonFields %"ISYM"\n", NumberOfBaryonFields);
         delete [] bv_buffer;
 #endif
  
-	delete buffer;
-        delete nfile;
-        delete dname1;
-        delete dname2;
+	delete [] buffer;
+        delete [] nfile;
+        delete [] dname1;
+        delete [] dname2;
  
         h5_status = H5Dclose(dset_id1);
 	if (io_log) fprintf(log_fptr,"H5Dclose 1: %"ISYM"\n", h5_status);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.