From 67d05047000c9d8f65504006c5c8ba166458310c Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 27 Jan 2017 11:00:29 +0100 Subject: [PATCH] [input] Let input_metadata_free zero metadata like the other free functions --- src/input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input.c b/src/input.c index dee17b33..362d8da0 100644 --- a/src/input.c +++ b/src/input.c @@ -503,6 +503,8 @@ input_metadata_free(struct input_metadata *metadata, int content_only) if (!content_only) free(metadata); + else + memset(metadata, 0, sizeof(struct input_metadata)); } int