diff --git a/daemon/augeas.c b/daemon/augeas.c index b34222ab5..b4c03e44e 100644 --- a/daemon/augeas.c +++ b/daemon/augeas.c @@ -342,7 +342,7 @@ do_aug_match (const char *path) vp = realloc (matches, sizeof (char *) * (r+1)); if (vp == NULL) { reply_with_perror ("realloc"); - free (vp); + free_stringslen (matches, r); return NULL; } matches = vp;