[Numpy-svn] [numpy/numpy] 81e50a: BUG: Fix memleak in _convert_from_dict

GitHub noreply at github.com
Fri Nov 6 13:50:58 EST 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 81e50a3416061726ccdef6033652a282ac4f01c4
      https://github.com/numpy/numpy/commit/81e50a3416061726ccdef6033652a282ac4f01c4
  Author: Allan Haldane <allan.haldane at gmail.com>
  Date:   2015-11-06 (Fri, 06 Nov 2015)

  Changed paths:
    M numpy/core/src/multiarray/descriptor.c

  Log Message:
  -----------
  BUG: Fix memleak in _convert_from_dict

Fixes a memleak introduced in #5920, where PyDict_GetItemString
was replaced by PyMapping_GetItemString which returns a new ref.

Fixes #6636


  Commit: 7f53768b8ff70d4eaf03198c283a8eebdd9281ee
      https://github.com/numpy/numpy/commit/7f53768b8ff70d4eaf03198c283a8eebdd9281ee
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-11-06 (Fri, 06 Nov 2015)

  Changed paths:
    M numpy/core/src/multiarray/descriptor.c

  Log Message:
  -----------
  Merge pull request #6642 from ahaldane/fix_dict_descr_memleak

BUG: Fix memleak in _convert_from_dict


Compare: https://github.com/numpy/numpy/compare/9cc7bc3ad4e3...7f53768b8ff7


More information about the Numpy-svn mailing list