stroke: Fix memory leak when printing unknown AC group OIDs
authorTobias Brunner <tobias@strongswan.org>
Wed, 9 Apr 2014 14:05:55 +0000 (16:05 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 9 Apr 2014 14:06:17 +0000 (16:06 +0200)
src/libcharon/plugins/stroke/stroke_list.c

index 991bed1..1aa49ce 100644 (file)
@@ -1093,6 +1093,7 @@ static void stroke_list_acerts(linked_list_t *list, bool utc, FILE *out)
                                                if (str)
                                                {
                                                        fprintf(out, "%s", str);
+                                                       free(str);
                                                }
                                                else
                                                {