aboutsummaryrefslogtreecommitdiff
path: root/src/cs2cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cs2cs.c')
-rw-r--r--src/cs2cs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cs2cs.c b/src/cs2cs.c
index 730d37ee..de3259d2 100644
--- a/src/cs2cs.c
+++ b/src/cs2cs.c
@@ -263,6 +263,7 @@ int main(int argc, char **argv)
} else
emess(1,"invalid list option: l%c",arg[1]);
exit(0);
+ /* cppcheck-suppress duplicateBreak */
continue; /* artificial */
case 'e': /* error line alternative */
if (--argc <= 0)
@@ -446,10 +447,8 @@ int main(int argc, char **argv)
emess_dat.File_name = 0;
}
- if( fromProj != NULL )
- pj_free( fromProj );
- if( toProj != NULL )
- pj_free( toProj );
+ pj_free( fromProj );
+ pj_free( toProj );
pj_deallocate_grids();