Skip to content

Commit

Permalink
nvapeek: fix memory leak
Browse files Browse the repository at this point in the history
Caught by ASAN.
  • Loading branch information
Lekensteyn committed Nov 1, 2016
1 parent cb3627a commit 99053ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nva/nva.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ struct nva_card *nva_init_platform() {
}
}
}
closedir(dir);

if (bar0 == 0xffffffff)
return NULL;
Expand Down

0 comments on commit 99053ba

Please sign in to comment.