Fix heap free in __pntw_1dict
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 1 Dec 2013 01:06:24 +0000 (20:06 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 1 Dec 2013 01:06:24 +0000 (20:06 -0500)
commit3e9fb8750ab759e49f2f50cf3417d83753b180b2
treeca7cfe2ed27cf77544a797d52572f5077b31c60c
parentcb118b68d6c6e77968c4e663c2e06a3b7c17cce6
Fix heap free in __pntw_1dict

    * src/map.c(__pntw_1dict): when array is allocated in the heap, the primary
      address is kept in keys, but later vals is freed. This is clearly a bug,
      which can corrupt the heap in weird ways that are untraceable.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/map.c