diff options
Diffstat (limited to 'daemon/readdir.c')
-rw-r--r-- | daemon/readdir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/readdir.c b/daemon/readdir.c index cea6fdd4..e3851db4 100644 --- a/daemon/readdir.c +++ b/daemon/readdir.c @@ -1,5 +1,5 @@ /* libguestfs - the guestfsd daemon - * Copyright (C) 2009 Red Hat Inc. + * Copyright (C) 2009 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,6 +68,8 @@ do_readdir (char *path) if (!p || !v.name) { reply_with_perror ("allocate"); free (ret->guestfs_int_dirent_list_val); + free (p); + free (v.name); free (ret); closedir (dir); return NULL; |