diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-02-21 16:29:37 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-02-21 16:29:37 +0200 |
commit | 910b8cf881052050c0edade38d0f9de8cdacf3c6 (patch) | |
tree | e13b48bc0782df22ef989c3dd942ef8496cb36d6 /src/ctl.c | |
parent | 722533c595a0976e50cca45dca7f28ff7e599970 (diff) | |
download | pies-910b8cf881052050c0edade38d0f9de8cdacf3c6.tar.gz pies-910b8cf881052050c0edade38d0f9de8cdacf3c6.tar.bz2 |
Fix memory leaks
Diffstat (limited to 'src/ctl.c')
-rw-r--r-- | src/ctl.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -254,2 +254,5 @@ input_destroy (struct input *inp) grecs_symtab_free (inp->headers); + free (inp->input_method); + free (inp->input_uri); + free (inp->input_proto); } @@ -261,5 +264,12 @@ input_reset (struct input *inp) grecs_symtab_clear (inp->headers); + + free (inp->input_method); inp->input_method = NULL; + + free (inp->input_uri); inp->input_uri = NULL; + + free (inp->input_proto); inp->input_proto = NULL; + inp->input_content_length = 0; @@ -1974,3 +1984,3 @@ select_and_run (struct ctlio *io, struct pcond_node *cond, env.fun = NULL; - env.result = json_new_array (); + env.result = NULL; |