Always return NULL from fdFree()
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 18 Apr 2012 07:09:01 +0000 (10:09 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 18 Apr 2012 07:19:25 +0000 (10:19 +0300)
commit4c1f7e335de1724661ce63c53186d161ab71a63f
tree12855ebe1c07f13a0331f659f9b1bc6251b0bf9b
parent6cb8e8b2ef31cace0fe0ef0112a15aa16a427fd7
Always return NULL from fdFree()

- Up to now, if the fd had remaining references fdFree() would return
  the supposedly free'd fd back to us, which is unlike anything else
  in rpm. Make this consistent with the rest of rpm finally as the
  last remaining caller requiring the old semantics is gone from
  the codebase (somewhere between 4.9 and 4.10): always return NULL,
  as the referenced instance is now gone as far as the caller is concerned.
rpmio/rpmio.c