projects
/
platform
/
core
/
account
/
liboauth2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
862f815
)
Free pch in case of error
03/263303/1
accepted/tizen/6.5/unified/20211028.094115
accepted/tizen/unified/20210901.103728
submit/tizen/20210901.060704
submit/tizen_6.5/20211028.161601
tizen_6.5.m2_release
author
Lohit Agarwalla
<l.agarwalla@samsung.com>
Tue, 31 Aug 2021 07:43:33 +0000
(13:13 +0530)
committer
Lohit Agarwalla
<l.agarwalla@samsung.com>
Tue, 31 Aug 2021 07:43:33 +0000
(13:13 +0530)
Change-Id: I30c5099adb38117577b98a2231f6e226d7157cf9
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
src/oauth2_util.c
patch
|
blob
|
history
diff --git
a/src/oauth2_util.c
b/src/oauth2_util.c
index 376f40d46cace56fca3076ffa6893463c0e98f98..d45422b049da77362f041a7278c1db6800fb48f8 100644
(file)
--- a/
src/oauth2_util.c
+++ b/
src/oauth2_util.c
@@
-107,7
+107,7
@@
oauth2_util_get_params(const char *url_part, bundle **params)
int key_size = (eq_ptr - tmp_start) + 1;
char *key = (char *) malloc((key_size) * sizeof(char));
- OAUTH2_RETURN_VAL(key, {}, OAUTH2_ERROR_OUT_OF_MEMORY,
+ OAUTH2_RETURN_VAL(key, {
g_strfreev(pch);
}, OAUTH2_ERROR_OUT_OF_MEMORY,
"Out of memory");
memset(key, '\0', ((eq_ptr - tmp_start) + 1) * sizeof(char));
strncpy(key, tmp_start, (eq_ptr - tmp_start));