Fix some memory errors.
authorRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 08:42:01 +0000 (08:42 +0000)
committerRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 08:42:01 +0000 (08:42 +0000)
src/libdhcpcd/config.c

index 0cea6c8dec4dfc5f2b0c9db4d23338f415d6c116..3fc6ed74ac3122593119ea050caa42624e29dbba 100644 (file)
@@ -435,10 +435,9 @@ dhcpcd_config_blocks_free(char **blocks)
 {
        char **b;
 
-       assert(blocks);
        if (blocks) {
                for (b = blocks; *b; b++)
-                       free(b);
+                       free(*b);
                free(blocks);
        }
 }