X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Freaddir.c;h=e3851db4419c9524423e1aa4318fa0c6242de97a;hp=cea6fdd45c08351735f011f160e1e1a3747627d2;hb=afaff775c12f32b7912f194e2fcc8e76b8c82572;hpb=5186251f8f681f2ebb028423bb49a748861fd11e diff --git a/daemon/readdir.c b/daemon/readdir.c index cea6fdd..e3851db 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;