Skip to content

Commit

Permalink
fix memory leak in mapproject.c (#5150)
Browse files Browse the repository at this point in the history
  • Loading branch information
gogglesguy authored and tbonfort committed Sep 8, 2015
1 parent 8cf63dc commit 433428e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mapproject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,10 @@ static projectionObj* msGetProjectNormalized( const projectionObj* p )
memmove(pnew->args + i, pnew->args + i + 1,
sizeof(char*) * (pnew->numargs - 1 -i ));
}
else
{
msFree(pnew->args[i]);
}
pnew->numargs --;
i --;
continue;
Expand Down

0 comments on commit 433428e

Please sign in to comment.