diff --git a/examples/fb/fb_main.c b/examples/fb/fb_main.c index 86a6b1390..d0d037ba3 100644 --- a/examples/fb/fb_main.c +++ b/examples/fb/fb_main.c @@ -470,7 +470,7 @@ int main(int argc, FAR char *argv[]) } printf("Test finished\n"); - munmap(state.fd, state.fbmem); + munmap(state.fbmem, state.pinfo.fblen); close(state.fd); return EXIT_SUCCESS; }