aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cs2cs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cs2cs.c b/src/cs2cs.c
index 730d37ee..b7e0ab7f 100644
--- a/src/cs2cs.c
+++ b/src/cs2cs.c
@@ -446,10 +446,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();