summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
authorCyril Brulebois <kibi@debian.org>2010-11-08 23:35:33 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2010-11-11 08:29:54 +1000
commitb142b0d27442191d628762604f4eb1f65263d717 (patch)
tree502f7f92f01a5ecf8301bc5bf41555934896d128 /glx
parent0649ac0afdb3f8ed11c2634563d6b9df161cb9ec (diff)
Remove more superfluous if(p!=NULL) checks around free(p).
This patch has been generated by the following Coccinelle semantic patch: @@ expression E; @@ - if (E != NULL) - free(E); + free(E); Signed-off-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'glx')
-rw-r--r--glx/single2.c3
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;
}