summaryrefslogtreecommitdiff
path: root/xs_httpd.h
diff options
context:
space:
mode:
authorGravatar default2022-10-25 09:32:41 +0200
committerGravatar default2022-10-25 09:32:41 +0200
commitfa870ab358ce94017228cdddf4697e041fc32531 (patch)
tree326d5a13a525531b4c5c243160d215d7c28263ae /xs_httpd.h
parentDon't load unneeded actor info in html_entry(). (diff)
downloadsnac2-fa870ab358ce94017228cdddf4697e041fc32531.tar.gz
snac2-fa870ab358ce94017228cdddf4697e041fc32531.tar.xz
snac2-fa870ab358ce94017228cdddf4697e041fc32531.zip
Backport from xs.
Diffstat (limited to 'xs_httpd.h')
-rw-r--r--xs_httpd.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/xs_httpd.h b/xs_httpd.h
index 2fb5057..09dce0d 100644
--- a/xs_httpd.h
+++ b/xs_httpd.h
@@ -252,10 +252,8 @@ d_char *xs_httpd_request(FILE *f, d_char **payload, int *p_size)
252 req = xs_dict_append(req, "q_vars", q_vars); 252 req = xs_dict_append(req, "q_vars", q_vars);
253 req = xs_dict_append(req, "p_vars", p_vars); 253 req = xs_dict_append(req, "p_vars", p_vars);
254 254
255 if (errno) { 255 if (errno)
256 free(req); 256 req = xs_free(req);
257 req = NULL;
258 }
259 257
260 return req; 258 return req;
261} 259}