mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
Fix double-free in logout
This commit is contained in:
parent
0d55a718cc
commit
35d7a9bc61
@ -253,7 +253,7 @@ int config_existdir(char *path) {
|
||||
void config_subst_stream(WS_CONNINFO *pwsc, int fd_src) {
|
||||
int in_arg;
|
||||
char *argptr;
|
||||
char argbuffer[80];
|
||||
char argbuffer[256];
|
||||
char next;
|
||||
CONFIGELEMENT *pce;
|
||||
char *first, *last;
|
||||
|
@ -1187,7 +1187,6 @@ void dispatch_browse(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
||||
DPRINTF(E_WARN,L_DAAP|L_BROW,"Invalid browse request type %s\n",pqi->uri_sections[3]);
|
||||
ws_returnerror(pwsc,404,"Invalid browse type");
|
||||
config_set_status(pwsc,pqi->session_id,NULL);
|
||||
free(pqi);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1427,7 +1426,6 @@ void dispatch_dbinfo(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
||||
|
||||
void dispatch_logout(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
||||
config_set_status(pwsc,pqi->session_id,NULL);
|
||||
free(pqi);
|
||||
ws_returnerror(pwsc,204,"Logout Successful");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user