~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
playrtp: refuse to play RTP via RTP.
[disorder]
/
lib
/
client.c
diff --git
a/lib/client.c
b/lib/client.c
index
c621ead
..
2cbcfa7
100644
(file)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-519,7
+519,7
@@
int disorder_close(disorder_client *c) {
c->ident = 0;
xfree(c->user);
c->user = 0;
c->ident = 0;
xfree(c->user);
c->user = 0;
- return
0
;
+ return
ret
;
}
/** @brief Play a track
}
/** @brief Play a track
@@
-653,6
+653,7
@@
static int disorder_somequeue(disorder_client *c,
if(!strcmp(l, ".")) {
*qt = 0;
*qp = qh;
if(!strcmp(l, ".")) {
*qt = 0;
*qp = qh;
+ xfree(l);
return 0;
}
q = xmalloc(sizeof *q);
return 0;
}
q = xmalloc(sizeof *q);
@@
-660,6
+661,7
@@
static int disorder_somequeue(disorder_client *c,
*qt = q;
qt = &q->next;
}
*qt = q;
qt = &q->next;
}
+ xfree(l);
}
if(ferror(c->fpin)) {
byte_xasprintf((char **)&c->last, "input error: %s", strerror(errno));
}
if(ferror(c->fpin)) {
byte_xasprintf((char **)&c->last, "input error: %s", strerror(errno));
@@
-867,7
+869,9
@@
int disorder_prefs(disorder_client *c, const char *track, struct kvp **kp) {
k->name = pvec[0];
k->value = pvec[1];
kp = &k->next;
k->name = pvec[0];
k->value = pvec[1];
kp = &k->next;
+ xfree(pvec);
}
}
+ free_strings(nvec, vec);
*kp = 0;
return 0;
}
*kp = 0;
return 0;
}