Permalink
Browse files

fix memory leak in mapproject.c (#5150)

  • Loading branch information...
gogglesguy authored and tbonfort committed Aug 24, 2015
1 parent 8cf63dc commit 433428e5f972ecf1c8aba927298b2a1b18a7dc65
Showing with 4 additions and 0 deletions.
  1. +4 −0 mapproject.c
View
@@ -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;

0 comments on commit 433428e

Please sign in to comment.