From 862f815381c3333ab500585771eb3126e6cbe6f2 Mon Sep 17 00:00:00 2001 From: Lohit Agarwalla Date: Mon, 23 Aug 2021 16:45:59 +0530 Subject: [PATCH] Free pch after use Change-Id: I783885b11af537eb7076c6c81325c716de251dee Signed-off-by: Lohit Agarwalla --- src/oauth2_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oauth2_util.c b/src/oauth2_util.c index f69bb46..376f40d 100644 --- a/src/oauth2_util.c +++ b/src/oauth2_util.c @@ -120,6 +120,7 @@ oauth2_util_get_params(const char *url_part, bundle **params) if (val == NULL) { OAUTH2_LOG_E("Out of memory"); OAUTH2_FREE(key); + g_strfreev(pch); return OAUTH2_ERROR_OUT_OF_MEMORY; } @@ -134,6 +135,7 @@ oauth2_util_get_params(const char *url_part, bundle **params) OAUTH2_FREE(val); } + g_strfreev(pch); return OAUTH2_ERROR_NONE; } -- 2.7.4