From 540dda40affc7fdd8621938c0f4df6ea391b85d3 Mon Sep 17 00:00:00 2001 From: anholt Date: Wed, 30 Apr 2003 00:15:06 +0000 Subject: Fix a small memory leak in XvQueryAdaptors() PR: ports/51579 Submitted by: Alexey Dokuchaev --- x11/XFree86-4-libraries/Makefile | 2 +- x11/XFree86-4-libraries/files/patch-Xv.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 x11/XFree86-4-libraries/files/patch-Xv.c (limited to 'x11/XFree86-4-libraries') 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(); + -- cgit