Permalink
Browse files

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

  • Loading branch information...
1 parent f6c6230 commit 278f34747911e093960388ba50a568fff914c9ac @sdlime sdlime committed Dec 29, 2014
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 278f347

Please sign in to comment.