diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-17 15:17:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-17 15:17:28 +0000 |
commit | 7200a570471907816431a57fe914ff5557118ee9 (patch) | |
tree | 28754e54a4b24ddd36c666a75a308a3658795839 /src | |
parent | 16642c4cb25faae335591b39795c71dedbeb37f1 (diff) | |
download | gnunet-7200a570471907816431a57fe914ff5557118ee9.tar.gz gnunet-7200a570471907816431a57fe914ff5557118ee9.zip |
-use const and free json where it was allocated
Diffstat (limited to 'src')
-rw-r--r-- | src/curl/curl.c | 1 | ||||
-rw-r--r-- | src/include/gnunet_curl_lib.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/curl/curl.c b/src/curl/curl.c index 10ba7f719..9276915b3 100644 --- a/src/curl/curl.c +++ b/src/curl/curl.c | |||
@@ -453,6 +453,7 @@ GNUNET_CURL_perform (struct GNUNET_CURL_Context *ctx) | |||
453 | job->jcc (job->jcc_cls, | 453 | job->jcc (job->jcc_cls, |
454 | response_code, | 454 | response_code, |
455 | j); | 455 | j); |
456 | json_decref (j); | ||
456 | GNUNET_CURL_job_cancel (job); | 457 | GNUNET_CURL_job_cancel (job); |
457 | } | 458 | } |
458 | } | 459 | } |
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h index 098b4dc37..db04f1233 100644 --- a/src/include/gnunet_curl_lib.h +++ b/src/include/gnunet_curl_lib.h | |||
@@ -113,7 +113,7 @@ struct GNUNET_CURL_Job; | |||
113 | typedef void | 113 | typedef void |
114 | (*GNUNET_CURL_JobCompletionCallback)(void *cls, | 114 | (*GNUNET_CURL_JobCompletionCallback)(void *cls, |
115 | long response_code, | 115 | long response_code, |
116 | json_t *json); | 116 | const json_t *json); |
117 | 117 | ||
118 | 118 | ||
119 | /** | 119 | /** |