list-9p: Avoid double free along error path.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 12 Jul 2011 11:51:43 +0000 (12:51 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 12 Jul 2011 12:27:47 +0000 (13:27 +0100)
This updates commit 5f10c3350338bbca735a74db26f98da968957bd9.

daemon/9p.c

index 9e89e08..550516e 100644 (file)
@@ -82,7 +82,6 @@ do_list_9p (void)
 
       if (add_string (&r, &size, &alloc, mount_tag) == -1) {
         free (mount_tag);
-        free_stringslen (r, size);
         closedir (dir);
         return NULL;
       }