chiark / gitweb /
sd-device: get_sysattr_value - don't leak returned value
authorTom Gundersen <teg@jklm.no>
Fri, 3 Apr 2015 15:43:13 +0000 (17:43 +0200)
committerTom Gundersen <teg@jklm.no>
Fri, 3 Apr 2015 15:45:51 +0000 (17:45 +0200)
commit2fe29a46a3e16a787098f9fb410e1b756506fd52
treebaf95e8ed5fd7da70e49ba09664c51daedb625fe
parentb3f2490072eb0495d4941dba390a7f759d28c663
sd-device: get_sysattr_value - don't leak returned value

This was getting leaked as a copy was added to the hashmap, simply add the
returned value instead.

This should fix CID #1292806.
src/libsystemd/sd-device/sd-device.c