Skip to content

Commit

Permalink
9vx/x11: fix free on invalid pointer
Browse files Browse the repository at this point in the history
Fixes #1.
  • Loading branch information
0intro committed Sep 30, 2018
1 parent 68e21bc commit f8e6c94
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/9vx/x11/x11-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ _xattach(char *label, char *winsize)
if(_x.display == nil){
disp = getenv("DISPLAY");
werrstr("XOpenDisplay %s: %r", disp ? disp : ":0");
free(disp);
return nil;
}
_x.fd = ConnectionNumber(_x.display);
Expand Down

0 comments on commit f8e6c94

Please sign in to comment.