diff options
author | dvl <dvl@FreeBSD.org> | 2017-05-01 22:32:54 +0800 |
---|---|---|
committer | dvl <dvl@FreeBSD.org> | 2017-05-01 22:32:54 +0800 |
commit | 447a6f62d98046cf84e478d1b8d9460d500f8401 (patch) | |
tree | 30f57e09f3e5b3c1d1a8b076f7ae2a266235ee1c /lang/mono/files | |
parent | 2fecb2d5c94f872c0b6674d60f0a8cfb0572748a (diff) | |
download | freebsd-ports-gnome-447a6f62d98046cf84e478d1b8d9460d500f8401.tar.gz freebsd-ports-gnome-447a6f62d98046cf84e478d1b8d9460d500f8401.tar.zst freebsd-ports-gnome-447a6f62d98046cf84e478d1b8d9460d500f8401.zip |
Upgrade to 4.8.1.0
Approved by: miwi (maintainer)
Diffstat (limited to 'lang/mono/files')
-rw-r--r-- | lang/mono/files/patch-mono_utils_mono-proclib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/mono/files/patch-mono_utils_mono-proclib.c b/lang/mono/files/patch-mono_utils_mono-proclib.c index 2edf8e10d6eb..ae0cdcd01435 100644 --- a/lang/mono/files/patch-mono_utils_mono-proclib.c +++ b/lang/mono/files/patch-mono_utils_mono-proclib.c @@ -1,6 +1,6 @@ ---- mono/utils/mono-proclib.c.orig 2016-07-29 09:10:33 UTC -+++ mono/utils/mono-proclib.c -@@ -107,11 +107,11 @@ mono_process_list (int *size) +--- mono/utils/mono-proclib.c.orig 2017-04-12 10:51:21.000000000 +0000 ++++ mono/utils/mono-proclib.c 2017-05-01 13:05:26.013997000 +0000 +@@ -116,11 +116,11 @@ mib [2] = KERN_PROC_ALL; mib [3] = 0; @@ -8,9 +8,9 @@ + res = sysctl (mib, 3, NULL, &data_len, NULL, 0); if (res) return NULL; - processes = (struct kinfo_proc *) malloc (data_len); + processes = (struct kinfo_proc *) g_malloc (data_len); - res = sysctl (mib, 4, processes, &data_len, NULL, 0); + res = sysctl (mib, 3, processes, &data_len, NULL, 0); if (res < 0) { - free (processes); + g_free (processes); if (errno != ENOMEM) |