Skip to content

Commit

Permalink
Don't destroy our config object before we're done using it.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Jun 27, 2019
1 parent 093a51f commit 672fa5d
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/stores/ovStoreBucketizer.C
Original file line number Diff line number Diff line change
Expand Up @@ -263,24 +263,12 @@ main(int argc, char **argv) {



// Write slice sizes.

AS_UTL_saveFile(sliceSName, sliceSize, config->numSlices() + 1);

// Close the output files.
// Write the outputs.

for (uint32 i=0; i<config->numSlices() + 1; i++)
delete sliceFile[i];

// Cleanup.

seq->sqStore_close();

delete [] sliceFile;
delete [] sliceSize;

delete filter;
delete config;
AS_UTL_saveFile(sliceSName, sliceSize, config->numSlices() + 1);

// Rename the bucket to show we're done.

Expand All @@ -303,7 +291,15 @@ main(int argc, char **argv) {
fprintf(stderr, "\n");
}

// Then be done.
// Cleanup and be done.

delete [] sliceFile;
delete [] sliceSize;

seq->sqStore_close();

delete filter;
delete config;

fprintf(stderr, "Success!\n");

Expand Down

0 comments on commit 672fa5d

Please sign in to comment.