diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-10-26 23:50:59 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-10-26 23:50:59 +0000 |
commit | b738988168f0f33eb3bfabd27b0f854a14043d16 (patch) | |
tree | 16c8c52b3258b668287fb0dbc3a780f9ba6db2be /src/schedule | |
parent | c5bca7cdda36fef2ceea06c5f5cb26b403b8fc70 (diff) |
Various things pointed out by running Insure on the code.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1109 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/schedule')
-rw-r--r-- | src/schedule/ScheduleSorter.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/schedule/ScheduleSorter.c b/src/schedule/ScheduleSorter.c index a3332742..56dad523 100644 --- a/src/schedule/ScheduleSorter.c +++ b/src/schedule/ScheduleSorter.c @@ -191,9 +191,13 @@ void CCTKi_ScheduleDestroyArray(int size, signed char **array) { int i; - for(i=size-1; i >=0; i--) + if(array) { - free(array[i]); + for(i=size-1; i >=0; i--) + { + free(array[i]); + } + free(array); } } |