diff options
author | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-08-06 22:04:32 +0000 |
---|---|---|
committer | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-08-06 22:04:32 +0000 |
commit | f9b743cb661d53addbfc7f7e711a37272c60fc8d (patch) | |
tree | aac522c5f787a1fc1882bcc2436c56b4d1e61d4c /navit/coord.c | |
parent | 6bd920e070b180c281cf77b720e108a1bb9c6fc1 (diff) | |
download | navit-f9b743cb661d53addbfc7f7e711a37272c60fc8d.tar.gz |
Fix:core: for freeing something, we don't need to check if it exists
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3517 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/coord.c')
-rw-r--r-- | navit/coord.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/navit/coord.c b/navit/coord.c index ab003aa39..8ee98d3e4 100644 --- a/navit/coord.c +++ b/navit/coord.c @@ -259,8 +259,7 @@ coord_parse(const char *c_str, enum projection pro, struct coord *c_ret) printf("ret=%d delta=%d ret_str='%s'\n", ret, GPOINTER_TO_INT(str-c_str), c_str+ret); } out: - if (proj) - free(proj); + free(proj); return ret; } |