From a9ecfbaae5c3b7b86fe2585698f151ae7eede3d6 Mon Sep 17 00:00:00 2001 From: Mithil Poojary Date: Sat, 3 Oct 2020 02:32:48 +0530 Subject: [PATCH] Free memory after use --- src/ical.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ical.cc b/src/ical.cc index c8b951e2..0f8d77da 100644 --- a/src/ical.cc +++ b/src/ical.cc @@ -154,6 +154,7 @@ void parse_ical_args(struct text_object *obj, const char *arg, opaque->comps = allc; opaque->num = num; obj->data.opaque = opaque; + free(opaque); } void print_ical(struct text_object *obj, char *p, unsigned int p_max_size) {