2
1

libxml2-5-xpath-freeing2.patch 885 B

12345678910111213141516171819202122232425262728
  1. From fec31bcd452e77c10579467ca87a785b41115de6 Mon Sep 17 00:00:00 2001
  2. From: Daniel Veillard <veillard@redhat.com>
  3. Date: Thu, 18 Nov 2010 10:07:24 +0000
  4. Subject: Small fix for previous commit
  5. ---
  6. diff --git a/xpath.c b/xpath.c
  7. index 1447be5..8b56189 100644
  8. --- a/xpath.c
  9. +++ b/xpath.c
  10. @@ -11765,13 +11765,14 @@ xmlXPathCompOpEvalPositionalPredicate(xmlXPathParserContextPtr ctxt,
  11. xmlXPathObjectPtr tmp;
  12. /* pop the result if any */
  13. tmp = valuePop(ctxt);
  14. - if (tmp != contextObj)
  15. + if (tmp != contextObj) {
  16. /*
  17. * Free up the result
  18. * then pop off contextObj, which will be freed later
  19. */
  20. xmlXPathReleaseObject(xpctxt, tmp);
  21. valuePop(ctxt);
  22. + }
  23. goto evaluation_error;
  24. }
  25. --
  26. cgit v0.8.3.1