mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[jsonapi] potential memleaks on query_params.filter object
This commit is contained in:
parent
ef0a194644
commit
6ad3d8dbef
@ -2441,6 +2441,7 @@ jsonapi_reply_library_artists(struct httpd_request *hreq)
|
||||
DPRINTF(E_LOG, L_WEB, "browse: Couldn't add artists to response buffer.\n");
|
||||
|
||||
error:
|
||||
free_query_params(&query_params, 1);
|
||||
jparse_free(reply);
|
||||
|
||||
if (ret < 0)
|
||||
@ -2597,6 +2598,7 @@ jsonapi_reply_library_albums(struct httpd_request *hreq)
|
||||
DPRINTF(E_LOG, L_WEB, "browse: Couldn't add albums to response buffer.\n");
|
||||
|
||||
error:
|
||||
free_query_params(&query_params, 1);
|
||||
jparse_free(reply);
|
||||
|
||||
if (ret < 0)
|
||||
@ -2936,6 +2938,7 @@ jsonapi_reply_library_playlist_tracks(struct httpd_request *hreq)
|
||||
DPRINTF(E_LOG, L_WEB, "playlist tracks: Couldn't add tracks to response buffer.\n");
|
||||
|
||||
error:
|
||||
free_query_params(&query_params, 1);
|
||||
jparse_free(reply);
|
||||
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user