mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-05 22:46:06 +00:00
Remove more superfluous if(p) checks around free(p)
This patch has been generated by the following Coccinelle semantic patch:
@@
expression E;
@@
-if(E) { free(E); }
+free(E);
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
5a0fc0ad21
commit
0a4d8cbdcd
84 changed files with 240 additions and 412 deletions
|
|
@ -97,9 +97,7 @@ static int __glXMakeBitmapFromGlyph(FontPtr font, CharInfoPtr pci)
|
|||
pci->metrics.characterWidth, 0,
|
||||
allocbuf ? allocbuf : buf) );
|
||||
|
||||
if (allocbuf) {
|
||||
free(allocbuf);
|
||||
}
|
||||
free(allocbuf);
|
||||
return Success;
|
||||
#undef __GL_CHAR_BUF_SIZE
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue