forked from pool/mono-core
13644377dd
Update to version 5.10.1.47 (5.10.1 Stable) OBS-URL: https://build.opensuse.org/request/show/597818 OBS-URL: https://build.opensuse.org/package/show/Mono:Factory/mono-core?expand=0&rev=196
22 lines
634 B
Diff
22 lines
634 B
Diff
diff -uprN mono-5.10.0.160.old/mono/profiler/aot.c mono-5.10.0.160/mono/profiler/aot.c
|
|
--- mono-5.10.0.160.old/mono/profiler/aot.c 2018-03-07 10:46:36.000000000 +0300
|
|
+++ mono-5.10.0.160/mono/profiler/aot.c 2018-03-12 02:25:51.857765220 +0300
|
|
@@ -108,7 +108,8 @@ parse_args (const char *desc)
|
|
const char *p;
|
|
gboolean in_quotes = FALSE;
|
|
char quote_char = '\0';
|
|
- char *buffer = malloc (strlen (desc));
|
|
+ char buffer[strlen (desc)];
|
|
+ memset (buffer, 0, strlen (desc));
|
|
int buffer_pos = 0;
|
|
|
|
for (p = desc; *p; p++){
|
|
@@ -154,7 +155,6 @@ parse_args (const char *desc)
|
|
parse_arg (buffer);
|
|
}
|
|
|
|
- g_free (buffer);
|
|
}
|
|
|
|
void
|