]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Forgot to VG_(free) a VG_(strdup)'d string.
authorNicholas Nethercote <njn@valgrind.org>
Wed, 26 Jun 2002 10:06:26 +0000 (10:06 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 26 Jun 2002 10:06:26 +0000 (10:06 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@468

coregrind/vg_main.c
vg_main.c

index 3ed7ee0912e8d2e95036fedee2f9ef8e76fc9556..6f2518b2e847bfb61caaf297710149b25670c3c4 100644 (file)
@@ -511,6 +511,8 @@ static void parse_cache_opt ( cache_t* cache, char* orig_opt, int opt_len )
    while (VG_(isdigit)(opt[i])) i++;
    if ('\0' != opt[i]) goto bad;
 
+   VG_(free)(VG_AR_PRIVATE, opt);
+
    cache->size      = (Int)VG_(atoll)(opt + i1);
    cache->assoc     = (Int)VG_(atoll)(opt + i2);
    cache->line_size = (Int)VG_(atoll)(opt + i3);
index 3ed7ee0912e8d2e95036fedee2f9ef8e76fc9556..6f2518b2e847bfb61caaf297710149b25670c3c4 100644 (file)
--- a/vg_main.c
+++ b/vg_main.c
@@ -511,6 +511,8 @@ static void parse_cache_opt ( cache_t* cache, char* orig_opt, int opt_len )
    while (VG_(isdigit)(opt[i])) i++;
    if ('\0' != opt[i]) goto bad;
 
+   VG_(free)(VG_AR_PRIVATE, opt);
+
    cache->size      = (Int)VG_(atoll)(opt + i1);
    cache->assoc     = (Int)VG_(atoll)(opt + i2);
    cache->line_size = (Int)VG_(atoll)(opt + i3);