mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Fix two memory leaks.
This commit is contained in:
parent
a4be99dc3f
commit
36f027c8c8
@ -438,6 +438,7 @@ static void appendf(struct apbuf *buf, const char *format, ...)
|
||||
va_end(va);
|
||||
|
||||
appendl(buf, tmp, len);
|
||||
safefree(tmp);
|
||||
}
|
||||
|
||||
|
||||
@ -1726,6 +1727,7 @@ static void process_get(struct connection *conn)
|
||||
xasprintf(&target, "%s%s", wwwroot, safe_url);
|
||||
generate_dir_listing(conn, target);
|
||||
safefree(target);
|
||||
safefree(safe_url);
|
||||
return;
|
||||
}
|
||||
mimetype = uri_content_type(index_name);
|
||||
|
Loading…
Reference in New Issue
Block a user