Permalink
Browse files

Fixes EUCA-3962 where a resource leak has been detected by coverity.

Fixes Coverity issue #10287.
  • Loading branch information...
1 parent 7f5416a commit 5f2b015bedc5c888ceb982f3a12b328a1ded9a18 @gelinasc gelinasc committed Nov 21, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 node/handlers_kvm.c
View
@@ -329,6 +329,7 @@ doGetConsoleOutput( struct nc_state_t *nc,
if (rc < 0) {
logprintfl(EUCAERROR, "[%s] cannot seek to beginning of file\n", instanceId);
if (console_append) free(console_append);
+ close(fd);
return(1);
}
}

0 comments on commit 5f2b015

Please sign in to comment.