]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Committed memory debugging stuff.
[wget] / src / main.c
index 5cbd692b485123bc35dd06cf35b09849184cefbb..dfc922df35b802c38bece1826a68df44e09b7d5f 100644 (file)
@@ -535,8 +535,8 @@ GNU General Public License for more details.\n"));
                         optarg);
                exit (1);
              }
-           free (com);
-           free (val);
+           xfree (com);
+           xfree (val);
          }
          break;
        case 'G':
@@ -809,6 +809,9 @@ Can't timestamp and not clobber old files at the same time.\n"));
     }
   log_close ();
   cleanup ();
+#ifdef DEBUG_MALLOC
+  print_malloc_debug_stats ();
+#endif
   if (status == RETROK)
     return 0;
   else