termptyesc: removed unnecessary null check for free.

This fixes coverity CID 1100643.
This commit is contained in:
Daniel Juyung Seo 2013-11-08 08:13:37 +09:00
parent e0bd4fd6f7
commit f5df6ce99d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}