forked from enlightenment/terminology
termptyesc: removed unnecessary null check for free.
This fixes coverity CID 1100643.
This commit is contained in:
parent
e0bd4fd6f7
commit
f5df6ce99d
|
@ -1139,7 +1139,7 @@ _handle_esc_terminology(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *
|
|||
if (ty->cb.command.func) ty->cb.command.func(ty->cb.command.data);
|
||||
}
|
||||
ty->cur_cmd = NULL;
|
||||
if (s) free(s);
|
||||
free(s);
|
||||
if (buf != bufsmall) free(buf);
|
||||
return cc - c;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue