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