aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorxride <xride@FreeBSD.org>2016-11-08 10:34:40 +0800
committerxride <xride@FreeBSD.org>2016-11-08 10:34:40 +0800
commitbd97dbfc69a686387be8c151e343f0396bb8e8b7 (patch)
tree83a94752abebb410193daf94d8b7fec7de5d1408 /comms
parent449352d16afbdb7284e9b5cb7ba9e8c40e621a60 (diff)
downloadfreebsd-ports-gnome-bd97dbfc69a686387be8c151e343f0396bb8e8b7.tar.gz
freebsd-ports-gnome-bd97dbfc69a686387be8c151e343f0396bb8e8b7.tar.zst
freebsd-ports-gnome-bd97dbfc69a686387be8c151e343f0396bb8e8b7.zip
Don't free the struct before free'ing it's member.
Diffstat (limited to 'comms')
-rw-r--r--comms/gpredict/files/patch-trsp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/comms/gpredict/files/patch-trsp.c b/comms/gpredict/files/patch-trsp.c
new file mode 100644
index 000000000000..889a99f4525e
--- /dev/null
+++ b/comms/gpredict/files/patch-trsp.c
@@ -0,0 +1,13 @@
+--- src/trsp-conf.c.orig 2016-06-04 02:02:30.359797000 -0500
++++ src/trsp-conf.c 2016-06-04 02:02:47.233560000 -0500
+@@ -186,9 +186,9 @@
+ for (i = 0; i < n; i++) {
+ trsp = (trsp_t *) g_slist_nth_data (trsplist, i);
+ g_free (trsp->name);
+- g_free (trsp);
+ if (trsp->mode)
+ g_free (trsp->mode);
++ g_free (trsp);
+ }
+ g_slist_free (trsplist);
+ trsplist = NULL;