Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jbo-ads authored and jmckenna committed Mar 28, 2020
1 parent f9f13d8 commit 0fa41a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,7 @@ int msDrawVectorLayer(mapObj *map, layerObj *layer, imageObj *image)
// Coordinates stored in the shape must keep their original values for
// the shape to be drawn multiple times.
// Here the original shape is restored.
msInitShape(&shape);
msFreeShape(&shape);
msCopyShape(&savedShape, &shape);
msFreeShape(&savedShape);
}
Expand Down

0 comments on commit 0fa41a9

Please sign in to comment.