[jsonapi] potential memleaks on query_params.filter object

This commit is contained in:
whatdoineed2do/Ray 2019-08-28 21:35:29 +01:00
parent ef0a194644
commit 6ad3d8dbef

View File

@ -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)