Commit b01e29ef authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

xkb: Don't check for NULL before calling free

Author: Pauli Nieminen <ext-pauli.nieminen@nokia.com> Date: Thu Jul 22 11:34:54 2010 +0300 xkb: Don't check for NULL before calling free Signed-off-by: 's avatarPauli Nieminen <ext-pauli.nieminen@nokia.com> Reviewed-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 90b83a79
......@@ -209,7 +209,6 @@ char tmpname[PATH_MAX];
}
if (!in)
{
if (buf != NULL)
free (buf);
#ifdef WIN32
unlink(tmpname);
......@@ -276,7 +275,6 @@ char tmpname[PATH_MAX];
fclose(in);
unlink(tmpname);
#endif
if (buf != NULL)
free (buf);
return status;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment