Report bundle tracing using the filename, not the full path.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 11 Apr 2014 22:56:33 +0000 (00:56 +0200)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Fri, 11 Apr 2014 22:56:33 +0000 (00:56 +0200)
mono/metadata/assembly.c

index 81542db928208d5db7ba088d23e76d50fbd9c94a..8deddf112f1b1ca010ba4f9e374b8548e5c613e8 100644 (file)
@@ -1471,12 +1471,13 @@ mono_assembly_open_from_bundle (const char *filename, MonoImageOpenStatus *statu
                }
        }
        mono_assemblies_unlock ();
-       g_free (name);
        if (image) {
                mono_image_addref (image);
-               mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_ASSEMBLY, "Assembly Loader loaded assembly from bundle: '%s'.", filename);
+               mono_trace (G_LOG_LEVEL_INFO, MONO_TRACE_ASSEMBLY, "Assembly Loader loaded assembly from bundle: '%s'.", name);
+               g_free (name);
                return image;
        }
+       g_free (name);
        return NULL;
 }