Merge pull request #795 from whatdoineed2do/jsonapi-memleak

[jsonapi] potential memleaks on query_params.filter object
This commit is contained in:
Christian Meffert 2019-08-30 19:31:44 +02:00 committed by GitHub
commit 73470113b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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)