svn commit: r425660 - head/comms/gpredict/files
Soeren Straarup
xride at FreeBSD.org
Tue Nov 8 02:34:42 UTC 2016
Author: xride
Date: Tue Nov 8 02:34:40 2016
New Revision: 425660
URL: https://svnweb.freebsd.org/changeset/ports/425660
Log:
Don't free the struct before free'ing it's member.
Added:
head/comms/gpredict/files/
head/comms/gpredict/files/patch-trsp.c (contents, props changed)
Added: head/comms/gpredict/files/patch-trsp.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/comms/gpredict/files/patch-trsp.c Tue Nov 8 02:34:40 2016 (r425660)
@@ -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;
More information about the svn-ports-all
mailing list