input: do not leak variable on prop check (CID 156541)
@@ -227,6 +227,9 @@ int flb_input_set_property(struct flb_input_instance *in, char *k, char *v)
/* Append any remaining configuration key to prop list */
prop = flb_malloc(sizeof(struct flb_config_prop));
if (!prop) {
+ if (tmp) {
+ flb_free(tmp);
+ }
return -1;
}
