From 99ea6c890424d5045cd33db8daa7c28d887b2a88 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 21 Apr 2010 16:19:53 +0200 Subject: [PATCH] network plugin: Don't access values in an already freed array. --- src/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network.c b/src/network.c index c34eb38e..054dc88b 100644 --- a/src/network.c +++ b/src/network.c @@ -720,11 +720,11 @@ static int parse_part_values (void **ret_buffer, size_t *ret_buffer_len, break; default: - sfree (pkg_types); - sfree (pkg_values); NOTICE ("network plugin: parse_part_values: " "Don't know how to handle data source type %"PRIu8, pkg_types[i]); + sfree (pkg_types); + sfree (pkg_values); return (-1); } /* switch (pkg_types[i]) */ } -- 2.30.2