Skip to content

Commit

Permalink
Fix memory leak in msINLINELayerNextShape() and null pointer derefere…
Browse files Browse the repository at this point in the history
…nce in maplexer when rerunning it after msCleanup() (fixes #5558)
  • Loading branch information
rouault committed Sep 9, 2019
1 parent 336b6fb commit 019a5b4
Show file tree
Hide file tree
Showing 6 changed files with 514 additions and 455 deletions.
1 change: 1 addition & 0 deletions maplayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2227,6 +2227,7 @@ int msINLINELayerNextShape(layerObj *layer, shapeObj *shape)
shape->values = (char **)msSmallRealloc(shape->values, sizeof(char *)*(layer->numitems));
for (i = shape->numvalues; i < layer->numitems; i++)
shape->values[i] = msStrdup("");
shape->numvalues = layer->numitems;
}

break;
Expand Down
Loading

0 comments on commit 019a5b4

Please sign in to comment.