diff options
Diffstat (limited to 'xorg-server/glx/single2.c')
-rw-r--r-- | xorg-server/glx/single2.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xorg-server/glx/single2.c b/xorg-server/glx/single2.c index d0f0c83bb..63a2a9d0e 100644 --- a/xorg-server/glx/single2.c +++ b/xorg-server/glx/single2.c @@ -350,9 +350,7 @@ int DoGetString(__GLXclientState *cl, GLbyte *pc, GLboolean need_swap) cl->GLClientextensions);
buf = __glXcombine_strings(buf1,
cx->pGlxScreen->GLextensions);
- if (buf1 != NULL) {
- free(buf1);
- }
+ free(buf1);
string = buf;
}
else if ( name == GL_VERSION ) {
@@ -381,8 +379,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;
}
|