]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: fix memory leak
authorMarcio Barbosa <mbarbosa@sinenomine.net>
Thu, 3 Mar 2016 21:23:28 +0000 (18:23 -0300)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 17 Aug 2016 13:08:53 +0000 (09:08 -0400)
commit8b1aa797a2833ed6db2c67e080b4d7f93a9a8d22
tree64d6bbd4ead5a0f19b3fb834f2e328baecb3ae59
parent62dae46841a0a19f2b82590e9d5b42dcc19af8fc
afs: fix memory leak

An error code is returned by afs_ProcessOpCreate if
this function can not allocate memory for ttargetName.

This function should release the memory previously
allocated for tname and decrement the reference count
of tdp as well.

Reviewed-on: https://gerrit.openafs.org/12208
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit bc123573539084ffc5a16ef1efaaaced5b2be202)

Change-Id: Ia5a09fe860b7a110ad55c111551702e20367ba1b
Reviewed-on: https://gerrit.openafs.org/12309
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afs/afs_disconnected.c