Permalink
Browse files

Added a check to msFreeCharArray() to bail if the array itself is NULL.

  • Loading branch information...
sdlime committed Dec 29, 2014
1 parent 20f4c13 commit 1985e2bb3a4e0d82313fb6d2a85f0a6f4a089bc3
Showing with 1 addition and 2 deletions.
  1. +1 −2 mapfile.c
View
@@ -137,10 +137,9 @@ void msFree(void *p)
void msFreeCharArray(char **array, int num_items)
{
int i;
-
+ if(!array) return;
for(i=0; i<num_items; i++)
msFree(array[i]);
-
msFree(array);
}

0 comments on commit 1985e2b

Please sign in to comment.