packages/libmrss: Add a memory leak patch and bump the PR
authorHolger Freyther <zecke@selfish.org>
Sun, 1 Apr 2007 20:51:47 +0000 (20:51 +0000)
committerHolger Freyther <zecke@selfish.org>
Sun, 1 Apr 2007 20:51:47 +0000 (20:51 +0000)
packages/libmrss/files/fix-memleaks.patch [new file with mode: 0644]
packages/libmrss/libmrss_0.17.bb

diff --git a/packages/libmrss/files/fix-memleaks.patch b/packages/libmrss/files/fix-memleaks.patch
new file mode 100644 (file)
index 0000000..c88570c
--- /dev/null
@@ -0,0 +1,17 @@
+Index: libmrss-0.17/src/mrss_parser.c
+===================================================================
+--- libmrss-0.17.orig/src/mrss_parser.c        2007-04-01 22:23:22.000000000 +0200
++++ libmrss-0.17/src/mrss_parser.c     2007-04-01 22:23:42.000000000 +0200
+@@ -186,10 +186,10 @@
+   cat->allocated = 1;
+   cat->category = c;
+-  if (!(c = nxmle_find_attribute (cur, "scheme", NULL)))
++  if (c = nxmle_find_attribute (cur, "scheme", NULL))
+     cat->domain = c;
+-  if (!(c = nxmle_find_attribute (cur, "label", NULL)))
++  if (c = nxmle_find_attribute (cur, "label", NULL))
+     cat->label = c;
+   if (!*category)
index 4d03985..0d23a2b 100644 (file)
@@ -3,12 +3,14 @@ LICENSE = "LGPL"
 HOMEPAGE = "http://www2.autistici.org/bakunin/codes.php"
 
 DEPENDS = "libnxml curl"
+PR      = "r1"
 
 inherit autotools pkgconfig
 
 SRC_URI = "http://www2.autistici.org/bakunin/libmrss/libmrss-${PV}.tar.gz \
            file://atom-changes.patch;patch=1                              \
            file://fix_atom_date_locale.patch;patch=1                      \
+           file://fix-memleaks.patch;patch=1                              \
            file://bump-version.patch;patch=1 "
 
 do_stage() {