@@ -295,7 +295,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map)
295295 "exception on rule #%i 'key_exists', key '%s' "
296296 "not found. Record content:\n%s" ,
297297 n , rule -> value , json );
298- free (json );
298+ flb_free (json );
299299 return FLB_FALSE ;
300300 }
301301 else if (rule -> type == FLB_EXP_KEY_NOT_EXISTS ) {
@@ -308,7 +308,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map)
308308 "exception on rule #%i 'key_not_exists', key '%s' "
309309 "exists. Record content:\n%s" ,
310310 n , rule -> value , json );
311- free (json );
311+ flb_free (json );
312312 flb_ra_key_value_destroy (val );
313313 return FLB_FALSE ;
314314 }
@@ -319,7 +319,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map)
319319 "exception on rule #%i 'key_val_is_null', "
320320 "key '%s' not found. Record content:\n%s" ,
321321 n , rule -> value , json );
322- free (json );
322+ flb_free (json );
323323 return FLB_FALSE ;
324324 }
325325 if (val -> type != FLB_RA_NULL ) {
@@ -330,7 +330,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map)
330330 "Record content:\n%s" ,
331331 n , rule -> value ,
332332 ra_value_type_to_str (val ), json );
333- free (json );
333+ flb_free (json );
334334 flb_ra_key_value_destroy (val );
335335 return FLB_FALSE ;
336336 }
@@ -343,7 +343,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map)
343343 "exception on rule #%i 'key_val_is_not_null', "
344344 "key '%s' not found. Record content:\n%s" ,
345345 n , rule -> value , json );
346- free (json );
346+ flb_free (json );
347347 return FLB_FALSE ;
348348 }
349349 if (val -> type == FLB_RA_NULL ) {
@@ -354,7 +354,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map)
354354 "Record content:\n%s" ,
355355 n , rule -> value ,
356356 ra_value_type_to_str (val ), json );
357- free (json );
357+ flb_free (json );
358358 flb_ra_key_value_destroy (val );
359359 return FLB_FALSE ;
360360 }
@@ -367,7 +367,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map)
367367 "exception on rule #%i 'key_val_is_null', "
368368 "key '%s' not found. Record content:\n%s" ,
369369 n , rule -> value , json );
370- free (json );
370+ flb_free (json );
371371 return FLB_FALSE ;
372372 }
373373
@@ -380,7 +380,7 @@ static int rule_apply(struct flb_expect *ctx, msgpack_object map)
380380 "key value '%s' is different than "
381381 "expected: '%s'. Record content:\n%s" ,
382382 n , val -> val .string , rule -> expect , json );
383- free (json );
383+ flb_free (json );
384384 flb_ra_key_value_destroy (val );
385385 return FLB_FALSE ;
386386 }
0 commit comments