diff options
author | Rich Megginson <rmeggins@redhat.com> | 2010-02-24 09:48:36 -0700 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2010-02-24 11:09:07 -0700 |
commit | 43894ffddf76baa4824c93d702ad4712e82b5b4e (patch) | |
tree | d2fa795013e3fe0167d0e632173d4ec7fb6df90b /Makefile.am | |
parent | c0fd0171fed64b026bc80bad872b6641a0c4d86f (diff) | |
download | ds-43894ffddf76baa4824c93d702ad4712e82b5b4e.tar.gz ds-43894ffddf76baa4824c93d702ad4712e82b5b4e.tar.xz ds-43894ffddf76baa4824c93d702ad4712e82b5b4e.zip |
fix memory leak in attr replace when replacement fails
if replacement of the attribute values fails (e.g. due to duplicate values)
the valstoreplace is not freed - the caller expects the valueset_replace
function to own the values passed in. The function will now free the values
if there was an error
In addition, valueset_replace should not free the old values in case
of error - it should leave the old values in the attribute
Reviewed by: nhosoi (Thanks!)
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions