Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / mini / main.c
index 77f8bc9578c9cea42168c5695dd3dca43d53ff6c..bd4f6674dfbc0d82273461ef9aabab9b56689604 100644 (file)
@@ -1,5 +1,6 @@
-/*
- * main.c: The main entry point for the mono executable
+/**
+ * \file
+ * The main entry point for the mono executable
  *
  * The main entry point does a few things:
  * 
@@ -135,7 +136,7 @@ static GSList *bundle_library_paths;
 static char *bundled_dylibrary_directory;
 
 static void
-delete_bundled_libraries ()
+delete_bundled_libraries (void)
 {
        GSList *list;
 
@@ -146,12 +147,12 @@ delete_bundled_libraries ()
 }
 
 static void
-bundle_save_library_initialize ()
+bundle_save_library_initialize (void)
 {
        bundle_save_library_initialized = 1;
        char *path = g_build_filename (g_get_tmp_dir (), "mono-bundle-XXXXXX", NULL);
        bundled_dylibrary_directory = g_mkdtemp (path);
-       /* don't free path - mkdtemp modifies it in place, and bundled_dylibrary_directory is an alias of it */
+       g_free (path);
        if (bundled_dylibrary_directory == NULL)
                return;
        atexit (delete_bundled_libraries);