rsocket.py getaddrinfo() don't call lltype.free too early

#87 Declined
Repository
Deleted repository
Branch
issue-1265 (2ee94c2b0e66)
Repository
pypy
Branch
default
Author
  1. Brian Kearns
Reviewers
Description

potential fix for https://bugs.pypy.org/issue1265

not familiar with lltype internals -- maybe someone can tell if this is solving the problem or just masking it?

Comments (4)

  1. Brian Kearns author

    my guess being that since p_res is an array of more lltype ptrs the deref doesn't return a primitive but rather some interior ptr that still references parent p_res memory, so res gets clobbered if freed too early. but not sure if that's correct.