aboutsummaryrefslogtreecommitdiffstats
path: root/x11/XFree86-4-libraries
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-04-30 08:15:06 +0800
committeranholt <anholt@FreeBSD.org>2003-04-30 08:15:06 +0800
commit540dda40affc7fdd8621938c0f4df6ea391b85d3 (patch)
treeacee478c0e4e9cf899e043828f9ef12d96fb2b59 /x11/XFree86-4-libraries
parent5c89718acc0f4c038d017955fa4a63d01d3edd3a (diff)
downloadfreebsd-ports-gnome-540dda40affc7fdd8621938c0f4df6ea391b85d3.tar.gz
freebsd-ports-gnome-540dda40affc7fdd8621938c0f4df6ea391b85d3.tar.zst
freebsd-ports-gnome-540dda40affc7fdd8621938c0f4df6ea391b85d3.zip
Fix a small memory leak in XvQueryAdaptors()
PR: ports/51579 Submitted by: Alexey Dokuchaev <danfe@regency.nsu.ru>
Diffstat (limited to 'x11/XFree86-4-libraries')
-rw-r--r--x11/XFree86-4-libraries/Makefile2
-rw-r--r--x11/XFree86-4-libraries/files/patch-Xv.c16
2 files changed, 17 insertions, 1 deletions
diff --git a/x11/XFree86-4-libraries/Makefile b/x11/XFree86-4-libraries/Makefile
index 254dfec46633..48886f05122f 100644
--- a/x11/XFree86-4-libraries/Makefile
+++ b/x11/XFree86-4-libraries/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libraries
PORTVERSION= 4.3.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XFREE:S/$/:x/} \
${MASTER_SITE_LOCAL:S/$/:local/}
diff --git a/x11/XFree86-4-libraries/files/patch-Xv.c b/x11/XFree86-4-libraries/files/patch-Xv.c
new file mode 100644
index 000000000000..b6882671a665
--- /dev/null
+++ b/x11/XFree86-4-libraries/files/patch-Xv.c
@@ -0,0 +1,16 @@
+Index: lib/Xv/Xv.c
+===================================================================
+RCS file: /home/ncvs/xfree/xc/lib/Xv/Xv.c,v
+retrieving revision 1.16
+retrieving revision 1.17
+diff -u -u -r1.16 -r1.17
+--- lib/Xv/Xv.c 16 Oct 2002 00:37:33 -0000 1.16
++++ lib/Xv/Xv.c 28 Apr 2003 16:56:27 -0000 1.17
+@@ -267,6 +267,7 @@
+ *p_nAdaptors = rep.num_adaptors;
+ *p_pAdaptors = pas;
+
++ Xfree(buffer);
+ UnlockDisplay(dpy);
+ SyncHandle();
+