Skip to content
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 f6c6230 commit 278f34747911e093960388ba50a568fff914c9ac
Showing with 1 addition and 2 deletions.
  1. +1 −2 mapfile.c
@@ -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.
You can’t perform that action at this time.