X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhivex.c;h=a72fa776907a294666944e5ec5f92f3a111640f5;hb=2419bda3b4b47687c787a2937238fee932ad66e5;hp=d042f4f659f84646d178191b1ee7983675a2e43c;hpb=ebd2ff37a9eba9412456c42398f64a3cb107b79c;p=hivex.git diff --git a/lib/hivex.c b/lib/hivex.c index d042f4f..a72fa77 100644 --- a/lib/hivex.c +++ b/lib/hivex.c @@ -2748,8 +2748,7 @@ hivex_node_set_value (hive_h *h, hive_node_h node, leave_partial: for (int i = 0; i < alloc_ct; i += 2) { - if (values[i / 2].value != NULL) - free (values[i / 2].value); + free (values[i / 2].value); if (i + 1 < alloc_ct && values[i / 2].key != NULL) free (values[i / 2].key); }