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 27, 2020
1 parent 4bd66c0 commit 2d46cb2
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 2d46cb2

Please sign in to comment.