Use setenv instead of putenv
authorMaarten Bosmans <mkbosmans@gmail.com>
Wed, 12 Jan 2011 07:15:44 +0000 (08:15 +0100)
committerMaarten Bosmans <mkbosmans@gmail.com>
Thu, 17 Feb 2011 10:58:21 +0000 (11:58 +0100)
commit8d12ab9e632420864fa024909c66863de2452987
tree0699ca29dcd8554cde1e14535c188d007629b889
parent051d82133f0ae6a57bf66fd200bc8e3591a7d5ca
Use setenv instead of putenv

In theory putenv could be used to handle freeing of strings yourself, but this
was not done in PulseAudio.  That leaves no advantages in using putenv.  With
setenv you're at the mercy of the implementation whether the strings leak, but
at least that is better then a certain leak, as it was before.
src/pulsecore/core-util.c