diff options
Diffstat (limited to 'glx')
-rw-r--r-- | glx/single2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/glx/single2.c b/glx/single2.c index 56ad86dc6..f93ce6e4a 100644 --- a/glx/single2.c +++ b/glx/single2.c @@ -377,8 +377,7 @@ int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap) __GLX_SEND_HEADER(); WriteToClient(client, length, (char *) string); - if (buf != NULL) - free(buf); + free(buf); return Success; } |