Date: Tue, 8 Nov 2016 02:34:40 +0000 (UTC) From: Soeren Straarup <xride@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425660 - head/comms/gpredict/files Message-ID: <201611080234.uA82YeX1056013@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611080234.uA82YeX1056013>