From 3049b3e70e0fe4f0960b71c590fa6bca77713de0 Mon Sep 17 00:00:00 2001 From: whatdoineed2do/Ray Date: Fri, 14 Feb 2020 21:10:15 +0000 Subject: [PATCH] [jsonapi] spotify token leak --- src/httpd_jsonapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpd_jsonapi.c b/src/httpd_jsonapi.c index c0297a0c..43301196 100644 --- a/src/httpd_jsonapi.c +++ b/src/httpd_jsonapi.c @@ -1110,7 +1110,7 @@ jsonapi_reply_spotify(struct httpd_request *hreq) spotifywebapi_access_token_get(&webapi_token); safe_json_add_string(jreply, "webapi_token", webapi_token.token); json_object_object_add(jreply, "webapi_token_expires_in", json_object_new_int(webapi_token.expires_in)); - + free(webapi_token.token); #else json_object_object_add(jreply, "enabled", json_object_new_boolean(false)); #endif