1. 31 Mar, 2016 2 commits
    • xdiff/xprepare: fix a memory leak · 6045afd3
      The xdl_prepare_env() function may initialise an xdlclassifier_t
      data structure via xdl_init_classifier(), which allocates memory
      to several fields, for example 'rchash', 'rcrecs' and 'ncha'.
      If this function later exits due to the failure of xdl_optimize_ctxs(),
      then this xdlclassifier_t structure, and the memory allocated to it,
      is not cleaned up.
      
      In order to fix the memory leak, insert a call to xdl_free_classifier()
      before returning.
      
      This patch was originally written by Ramsay Jones (see commit
      87f16258367a3b9a62663b11f898a4a6f3c19d31 in git.git).
      Patrick Steinhardt committed
    • xdiff/xprepare: use the XDF_DIFF_ALG() macro to access flag bits · 1bce1487
      Commit 307ab20b3 ("xdiff: PATIENCE/HISTOGRAM are not independent option
      bits", 19-02-2012) introduced the XDF_DIFF_ALG() macro to access the
      flag bits used to represent the diff algorithm requested. In addition,
      code which had used explicit manipulation of the flag bits was changed
      to use the macros.
      
      However, one example of direct manipulation remains. Update this code to
      use the XDF_DIFF_ALG() macro.
      
      This patch was originally written by Ramsay Jones (see commit
      5cd6978a9cfef58de061a9525f3678ade479564d in git.git).
      Patrick Steinhardt committed
  2. 29 Mar, 2016 1 commit
  3. 28 Mar, 2016 5 commits
  4. 26 Mar, 2016 1 commit
  5. 24 Mar, 2016 15 commits
  6. 23 Mar, 2016 16 commits