[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.16-test6-60-g51fc176

Lennart Poettering gitmailer-noreply at 0pointer.de
Tue Sep 1 19:07:28 PDT 2009


This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.

The master branch has been updated
      from  39e4652a78850c3ece3ada2e3cdb2266668dba45 (commit)

- Log -----------------------------------------------------------------
51fc176 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
297afad core-util: don't leak memory in pa_unset_env_recorded()
-----------------------------------------------------------------------

Summary of changes:
 src/pulsecore/core-util.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------

commit 297afadbef238f7a37f65bd3740a2ce24861c414
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Sep 2 04:05:34 2009 +0200

    core-util: don't leak memory in pa_unset_env_recorded()

diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 9034dc3..a3c6013 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -2474,9 +2474,11 @@ void pa_unset_env_recorded(void) {
     /* This is not thread-safe */
 
     for (;;) {
-        char *s = NULL;
+        char *s;
 
-        if (!(recorded_env = pa_strlist_pop(recorded_env, &s)))
+        recorded_env = pa_strlist_pop(recorded_env, &s);
+
+        if (!s)
             break;
 
         unsetenv(s);

commit 51fc1763a157e5077334f6821b7d04223d630176
Merge: 297afad 39e4652
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Sep 2 04:06:04 2009 +0200

    Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio


-- 
hooks/post-receive
PulseAudio Sound Server



More information about the pulseaudio-commits mailing list