Mercurial > audlegacy
changeset 1501:8f3c0c773c92 trunk
[svn] - more leak fixes
author | nenolod |
---|---|
date | Fri, 04 Aug 2006 11:54:26 -0700 |
parents | 188437eb996b |
children | bf9374436d1d |
files | ChangeLog libaudacious/beepctrl.c |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Aug 04 11:38:37 2006 -0700 +++ b/ChangeLog Fri Aug 04 11:54:26 2006 -0700 @@ -1,3 +1,12 @@ +2006-08-04 18:38:37 +0000 William Pitcock <nenolod@nenolod.net> + revision [1914] + - leak fix + + + Changes: Modified: + +3 -0 trunk/libaudacious/beepctrl.c + + 2006-08-04 09:46:05 +0000 George Averill <nhjm449@gmail.com> revision [1912] - Don't show "(null)" information.
--- a/libaudacious/beepctrl.c Fri Aug 04 11:38:37 2006 -0700 +++ b/libaudacious/beepctrl.c Fri Aug 04 11:54:26 2006 -0700 @@ -442,6 +442,9 @@ g_strlcpy(saddr.sun_path, path, 108); g_free(path); setreuid(stored_uid, euid); + + g_free(uri); + if (connect(fd, (struct sockaddr *) &saddr, sizeof(saddr)) != -1) return fd; } @@ -472,6 +475,8 @@ g_free(host); g_free(key); + g_free(uri); + if (connect(fd, (struct sockaddr *) &saddr, sizeof(saddr)) != -1) return fd; }