Permalink
Browse files

debugvmfs: Avoid double free when running "show" with no argument

  • Loading branch information...
1 parent 0b0f60f commit 220943577f1169b57bcd59555c7eb291599002bd @glandium committed Sep 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 debugvmfs/variables.c
View
@@ -244,7 +244,7 @@ static void free_member(const struct var_member *member, void *value)
static void free_var(const struct var *var, const struct var *up_to)
{
const struct var *v;
- if (!var)
+ if (!var || var == up_to)
return;
free_member(var->member, var->value);
v = var->parent;

0 comments on commit 2209435

Please sign in to comment.