X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fmain.c;h=bd4f6674dfbc0d82273461ef9aabab9b56689604;hb=b4e3c6b5fea50c1186f5ea7bd3f6e054cbfb4245;hp=77f8bc9578c9cea42168c5695dd3dca43d53ff6c;hpb=be95f699da177f6e2d13937062b8c6eca449104f;p=mono.git diff --git a/mono/mini/main.c b/mono/mini/main.c index 77f8bc9578c..bd4f6674dfb 100644 --- a/mono/mini/main.c +++ b/mono/mini/main.c @@ -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);