Commit a3df3a853395c85ccdedecb74cbf0735508e901c

Con Kolivas 2013-11-19T22:21:18

Decrement json references in api.c to not leak memory.

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