Mercurial > audlegacy
comparison libaudacious/beepctrl.c @ 1501:8f3c0c773c92 trunk
[svn] - more leak fixes
author | nenolod |
---|---|
date | Fri, 04 Aug 2006 11:54:26 -0700 |
parents | 188437eb996b |
children | 68aec931b0b6 |
comparison
equal
deleted
inserted
replaced
1500:188437eb996b | 1501:8f3c0c773c92 |
---|---|
440 audacious_decode_unix_uri(session, uri, &path); | 440 audacious_decode_unix_uri(session, uri, &path); |
441 | 441 |
442 g_strlcpy(saddr.sun_path, path, 108); | 442 g_strlcpy(saddr.sun_path, path, 108); |
443 g_free(path); | 443 g_free(path); |
444 setreuid(stored_uid, euid); | 444 setreuid(stored_uid, euid); |
445 | |
446 g_free(uri); | |
447 | |
445 if (connect(fd, (struct sockaddr *) &saddr, sizeof(saddr)) != -1) | 448 if (connect(fd, (struct sockaddr *) &saddr, sizeof(saddr)) != -1) |
446 return fd; | 449 return fd; |
447 } | 450 } |
448 } | 451 } |
449 else | 452 else |
469 saddr.sin_port = htons(port); | 472 saddr.sin_port = htons(port); |
470 memcpy(&saddr.sin_addr, hp->h_addr, hp->h_length); | 473 memcpy(&saddr.sin_addr, hp->h_addr, hp->h_length); |
471 | 474 |
472 g_free(host); | 475 g_free(host); |
473 g_free(key); | 476 g_free(key); |
477 | |
478 g_free(uri); | |
474 | 479 |
475 if (connect(fd, (struct sockaddr *) &saddr, sizeof(saddr)) != -1) | 480 if (connect(fd, (struct sockaddr *) &saddr, sizeof(saddr)) != -1) |
476 return fd; | 481 return fd; |
477 } | 482 } |
478 } | 483 } |