Commit 009511c995458c00a5f46426c8e80ddb94c20cbb

Con Kolivas 2013-11-19T22:29:14

The json_val in api.c is a borrowed reference, not a new one so don't decref it.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/api.c b/api.c
index e8aac16..7d45873 100644
--- a/api.c
+++ b/api.c
@@ -4589,7 +4589,6 @@ void api(int api_thr_id)
 									param = param_buf;
 								}
 							}
-							json_decref(json_val);
 						}
 						json_decref(json_config);
 					}