input: release tmp buffer when readin mem_buf_limit (CID 156541)
@@ -207,11 +207,11 @@ int flb_input_set_property(struct flb_input_instance *in, char *k, char *v)
}
else if (prop_key_check("mem_buf_limit", k, len) == 0 && tmp) {
limit = flb_utils_size_to_bytes(tmp);
+ flb_free(tmp);
if (limit == -1) {
return -1;
}
in->mp_buf_limit = (size_t) limit;
- flb_free(tmp);
}
else if (prop_key_check("listen", k, len) == 0) {
in->host.listen = tmp;
