GRASS 6.4.0svn (spearfish60):~ > CMD="g.proj -p" GRASS 6.4.0svn (spearfish60):~ > valgrind --tool=memcheck --leak-check=yes --show-reachable=yes $CMD --o ==4969== Memcheck, a memory error detector ==4969== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. ==4969== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info ==4969== Command: g.proj -p --o ==4969== -PROJ_INFO------------------------------------------------- name : UTM datum : nad27 nadgrids : conus proj : utm ellps : clark66 a : 6378206.4000000004 es : 0.0067686580 f : 294.9786982000 zone : 13 -PROJ_UNITS------------------------------------------------ unit : meter units : meters meters : 1.0 ==4969== ==4969== HEAP SUMMARY: ==4969== in use at exit: 2,431 bytes in 83 blocks ==4969== total heap usage: 657 allocs, 574 frees, 42,056 bytes allocated ==4969== ==4969== 2 bytes in 1 blocks are still reachable in loss record 1 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x506E095: split_opts (parser.c:2455) ==4969== by 0x506967E: G_parser (parser.c:959) ==4969== by 0x4032E4: main (main.c:167) ==4969== ==4969== 4 bytes in 1 blocks are still reachable in loss record 2 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5066B10: G__reallocate_mask_buf (opencell.c:892) ==4969== by 0x505D58A: gisinit (gisinit.c:131) ==4969== by 0x505D4BA: G__no_gisinit (gisinit.c:93) ==4969== by 0x402DB2: main (main.c:49) ==4969== ==4969== 6 bytes in 1 blocks are definitely lost in loss record 3 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x4E2CDAE: GPJ__get_datum_params (datum.c:180) ==4969== by 0x402137: set_datumtrans (datumtrans.c:52) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 6 bytes in 1 blocks are definitely lost in loss record 4 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x4E2CBDA: GPJ_get_datum_by_name (datum.c:45) ==4969== by 0x402156: set_datumtrans (datumtrans.c:57) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 7 bytes in 1 blocks are still reachable in loss record 5 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x5072197: G_set_program_name (progrm_nme.c:52) ==4969== by 0x402DA8: main (main.c:48) ==4969== ==4969== 7 bytes in 1 blocks are still reachable in loss record 6 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x5068D5E: G_parser (parser.c:736) ==4969== by 0x4032E4: main (main.c:167) ==4969== ==4969== 8 bytes in 1 blocks are definitely lost in loss record 7 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x4E2CC09: GPJ_get_datum_by_name (datum.c:47) ==4969== by 0x402156: set_datumtrans (datumtrans.c:57) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 17 bytes in 2 blocks are still reachable in loss record 8 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x5068E98: G_parser (parser.c:770) ==4969== by 0x4032E4: main (main.c:167) ==4969== ==4969== 19 bytes in 1 blocks are definitely lost in loss record 9 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x67607CF: vasprintf (in /lib64/libc-2.10.1.so) ==4969== by 0x50462C2: G_vasprintf (asprintf.c:61) ==4969== by 0x5046390: G_asprintf (asprintf.c:122) ==4969== by 0x4E2D644: GPJ_get_datum_transform_by_name (datum.c:402) ==4969== by 0x4E2CCA1: GPJ_get_default_datum_params_by_name (datum.c:90) ==4969== by 0x402170: set_datumtrans (datumtrans.c:61) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 10 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067B2F: G_define_flag (parser.c:204) ==4969== by 0x402E4E: main (main.c:67) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 11 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067B2F: G_define_flag (parser.c:204) ==4969== by 0x402E98: main (main.c:73) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 12 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067B2F: G_define_flag (parser.c:204) ==4969== by 0x402EE2: main (main.c:79) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 13 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067B2F: G_define_flag (parser.c:204) ==4969== by 0x402F2C: main (main.c:84) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 14 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067B2F: G_define_flag (parser.c:204) ==4969== by 0x402F6A: main (main.c:90) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 15 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067CD3: G_define_option (parser.c:274) ==4969== by 0x402FA8: main (main.c:97) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 16 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067CD3: G_define_option (parser.c:274) ==4969== by 0x40300C: main (main.c:106) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 17 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067CD3: G_define_option (parser.c:274) ==4969== by 0x403070: main (main.c:115) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 18 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067CD3: G_define_option (parser.c:274) ==4969== by 0x4030D4: main (main.c:123) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 19 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067CD3: G_define_option (parser.c:274) ==4969== by 0x403138: main (main.c:131) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 20 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067B2F: G_define_flag (parser.c:204) ==4969== by 0x4031BF: main (main.c:141) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 21 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067B2F: G_define_flag (parser.c:204) ==4969== by 0x4031FD: main (main.c:148) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 22 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067CD3: G_define_option (parser.c:274) ==4969== by 0x403247: main (main.c:154) ==4969== ==4969== 24 bytes in 1 blocks are still reachable in loss record 23 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067B2F: G_define_flag (parser.c:204) ==4969== by 0x4032AB: main (main.c:162) ==4969== ==4969== 26 bytes in 1 blocks are definitely lost in loss record 24 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x4E2CBF1: GPJ_get_datum_by_name (datum.c:46) ==4969== by 0x402156: set_datumtrans (datumtrans.c:57) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 32 bytes in 2 blocks are still reachable in loss record 25 of 49 ==4969== at 0x4C21167: calloc (vg_replace_malloc.c:418) ==4969== by 0x50440B7: G__calloc (alloc.c:74) ==4969== by 0x5068E56: G_parser (parser.c:766) ==4969== by 0x4032E4: main (main.c:167) ==4969== ==4969== 32 bytes in 1 blocks are definitely lost in loss record 26 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x4E2CCCE: GPJ_get_default_datum_params_by_name (datum.c:99) ==4969== by 0x402170: set_datumtrans (datumtrans.c:61) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 32 bytes in 1 blocks are definitely lost in loss record 27 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x67607CF: vasprintf (in /lib64/libc-2.10.1.so) ==4969== by 0x50462C2: G_vasprintf (asprintf.c:61) ==4969== by 0x5046390: G_asprintf (asprintf.c:122) ==4969== by 0x4E2D61E: GPJ_get_datum_transform_by_name (datum.c:400) ==4969== by 0x4E2CCA1: GPJ_get_default_datum_params_by_name (datum.c:90) ==4969== by 0x402170: set_datumtrans (datumtrans.c:61) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 40 bytes in 1 blocks are still reachable in loss record 28 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067AC4: G_define_flag (parser.c:190) ==4969== by 0x402E4E: main (main.c:67) ==4969== ==4969== 40 bytes in 1 blocks are still reachable in loss record 29 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067AC4: G_define_flag (parser.c:190) ==4969== by 0x402E98: main (main.c:73) ==4969== ==4969== 40 bytes in 1 blocks are still reachable in loss record 30 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067AC4: G_define_flag (parser.c:190) ==4969== by 0x402EE2: main (main.c:79) ==4969== ==4969== 40 bytes in 1 blocks are still reachable in loss record 31 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067AC4: G_define_flag (parser.c:190) ==4969== by 0x402F2C: main (main.c:84) ==4969== ==4969== 40 bytes in 1 blocks are still reachable in loss record 32 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067AC4: G_define_flag (parser.c:190) ==4969== by 0x402F6A: main (main.c:90) ==4969== ==4969== 40 bytes in 1 blocks are still reachable in loss record 33 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067AC4: G_define_flag (parser.c:190) ==4969== by 0x4031BF: main (main.c:141) ==4969== ==4969== 40 bytes in 1 blocks are still reachable in loss record 34 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067AC4: G_define_flag (parser.c:190) ==4969== by 0x4031FD: main (main.c:148) ==4969== ==4969== 40 bytes in 1 blocks are still reachable in loss record 35 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067AC4: G_define_flag (parser.c:190) ==4969== by 0x4032AB: main (main.c:162) ==4969== ==4969== 43 bytes in 9 blocks are definitely lost in loss record 36 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x4E2D872: GPJ_get_datum_transform_by_name (datum.c:448) ==4969== by 0x4E2CCA1: GPJ_get_default_datum_params_by_name (datum.c:90) ==4969== by 0x402170: set_datumtrans (datumtrans.c:61) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 46 bytes in 5 blocks are still reachable in loss record 37 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x50534F4: set_env (env.c:161) ==4969== by 0x50531FB: read_env (env.c:104) ==4969== by 0x5053AD4: G__getenv (env.c:317) ==4969== by 0x506E35C: check_overwrite (parser.c:2539) ==4969== by 0x50696C8: G_parser (parser.c:978) ==4969== by 0x4032E4: main (main.c:167) ==4969== ==4969== 51 bytes in 5 blocks are still reachable in loss record 38 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x505327E: set_env (env.c:124) ==4969== by 0x50531FB: read_env (env.c:104) ==4969== by 0x5053AD4: G__getenv (env.c:317) ==4969== by 0x506E35C: check_overwrite (parser.c:2539) ==4969== by 0x50696C8: G_parser (parser.c:978) ==4969== by 0x4032E4: main (main.c:167) ==4969== ==4969== 75 bytes in 1 blocks are definitely lost in loss record 39 of 49 ==4969== at 0x4C21F3D: realloc (vg_replace_malloc.c:476) ==4969== by 0x6760782: vasprintf (in /lib64/libc-2.10.1.so) ==4969== by 0x50462C2: G_vasprintf (asprintf.c:61) ==4969== by 0x5046390: G_asprintf (asprintf.c:122) ==4969== by 0x4E2CE6C: GPJ__get_datum_params (datum.c:193) ==4969== by 0x402137: set_datumtrans (datumtrans.c:52) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 80 bytes in 1 blocks are still reachable in loss record 40 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x506DFEC: split_opts (parser.c:2444) ==4969== by 0x506967E: G_parser (parser.c:959) ==4969== by 0x4032E4: main (main.c:167) ==4969== ==4969== 120 bytes in 1 blocks are still reachable in loss record 41 of 49 ==4969== at 0x4C21F3D: realloc (vg_replace_malloc.c:476) ==4969== by 0x5044155: G__realloc (alloc.c:111) ==4969== by 0x5053481: set_env (env.c:156) ==4969== by 0x50531FB: read_env (env.c:104) ==4969== by 0x5053AD4: G__getenv (env.c:317) ==4969== by 0x506E35C: check_overwrite (parser.c:2539) ==4969== by 0x50696C8: G_parser (parser.c:978) ==4969== by 0x4032E4: main (main.c:167) ==4969== ==4969== 134 bytes in 1 blocks are definitely lost in loss record 42 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x67607CF: vasprintf (in /lib64/libc-2.10.1.so) ==4969== by 0x50462C2: G_vasprintf (asprintf.c:61) ==4969== by 0x5046390: G_asprintf (asprintf.c:122) ==4969== by 0x4E2D660: GPJ_get_datum_transform_by_name (datum.c:403) ==4969== by 0x4E2CCA1: GPJ_get_default_datum_params_by_name (datum.c:90) ==4969== by 0x402170: set_datumtrans (datumtrans.c:61) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 144 bytes in 1 blocks are still reachable in loss record 43 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067BBF: G_define_option (parser.c:246) ==4969== by 0x40300C: main (main.c:106) ==4969== ==4969== 144 bytes in 1 blocks are still reachable in loss record 44 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067BBF: G_define_option (parser.c:246) ==4969== by 0x403070: main (main.c:115) ==4969== ==4969== 144 bytes in 1 blocks are still reachable in loss record 45 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067BBF: G_define_option (parser.c:246) ==4969== by 0x4030D4: main (main.c:123) ==4969== ==4969== 144 bytes in 1 blocks are still reachable in loss record 46 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067BBF: G_define_option (parser.c:246) ==4969== by 0x403138: main (main.c:131) ==4969== ==4969== 144 bytes in 1 blocks are still reachable in loss record 47 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x5067BBF: G_define_option (parser.c:246) ==4969== by 0x403247: main (main.c:154) ==4969== ==4969== 150 bytes in 9 blocks are definitely lost in loss record 48 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x4E2D85B: GPJ_get_datum_transform_by_name (datum.c:447) ==4969== by 0x4E2CCA1: GPJ_get_default_datum_params_by_name (datum.c:90) ==4969== by 0x402170: set_datumtrans (datumtrans.c:61) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== 158 bytes in 9 blocks are definitely lost in loss record 49 of 49 ==4969== at 0x4C21E43: malloc (vg_replace_malloc.c:195) ==4969== by 0x504402A: G__malloc (alloc.c:41) ==4969== by 0x507E337: G_store (store.c:36) ==4969== by 0x4E2D844: GPJ_get_datum_transform_by_name (datum.c:446) ==4969== by 0x4E2CCA1: GPJ_get_default_datum_params_by_name (datum.c:90) ==4969== by 0x402170: set_datumtrans (datumtrans.c:61) ==4969== by 0x4034B8: main (main.c:213) ==4969== ==4969== LEAK SUMMARY: ==4969== definitely lost: 689 bytes in 36 blocks ==4969== indirectly lost: 0 bytes in 0 blocks ==4969== possibly lost: 0 bytes in 0 blocks ==4969== still reachable: 1,742 bytes in 47 blocks ==4969== suppressed: 0 bytes in 0 blocks ==4969== ==4969== For counts of detected and suppressed errors, rerun with: -v ==4969== ERROR SUMMARY: 12 errors from 12 contexts (suppressed: 4 from 4)