diff options
author | anholt <anholt@FreeBSD.org> | 2003-04-26 16:00:21 +0800 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2003-04-26 16:00:21 +0800 |
commit | acbb03934f75ae44e202e443330d31b07d3a4699 (patch) | |
tree | e296383ad1143a394d6f86fea434539897ad5243 /x11/XFree86-4-libraries | |
parent | 59a0793e96df08c32ae25bb648f9d99987da4e83 (diff) | |
download | freebsd-ports-gnome-acbb03934f75ae44e202e443330d31b07d3a4699.tar.gz freebsd-ports-gnome-acbb03934f75ae44e202e443330d31b07d3a4699.tar.zst freebsd-ports-gnome-acbb03934f75ae44e202e443330d31b07d3a4699.zip |
Fix a memory leak in libX11.
Obtained from: RedHat
Diffstat (limited to 'x11/XFree86-4-libraries')
-rw-r--r-- | x11/XFree86-4-libraries/Makefile | 2 | ||||
-rw-r--r-- | x11/XFree86-4-libraries/files/patch-lcPrTxt.c | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/x11/XFree86-4-libraries/Makefile b/x11/XFree86-4-libraries/Makefile index d0806fb3ec21..254dfec46633 100644 --- a/x11/XFree86-4-libraries/Makefile +++ b/x11/XFree86-4-libraries/Makefile @@ -7,7 +7,7 @@ PORTNAME= libraries PORTVERSION= 4.3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_XFREE:S/$/:x/} \ ${MASTER_SITE_LOCAL:S/$/:local/} diff --git a/x11/XFree86-4-libraries/files/patch-lcPrTxt.c b/x11/XFree86-4-libraries/files/patch-lcPrTxt.c new file mode 100644 index 000000000000..d54dd94d639c --- /dev/null +++ b/x11/XFree86-4-libraries/files/patch-lcPrTxt.c @@ -0,0 +1,10 @@ +--- lib/X11/lcPrTxt.c.orig Mon Jun 3 15:36:00 2002 ++++ lib/X11/lcPrTxt.c Mon Apr 21 23:38:30 2003 +@@ -154,7 +154,6 @@ + buf_len = text_prop->nitems * 6 + 1; + else + buf_len = text_prop->nitems * XLC_PUBLIC(lcd, mb_cur_max) + 1; +- buf = (XPointer) Xmalloc(buf_len); + } + buf = (XPointer) Xmalloc(buf_len); + if (buf == NULL) |