summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_log.c
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2016-03-12 22:16:06 +0100
committerJean Guyomarc'h <jean.guyomarch@gmail.com>2016-03-12 22:57:21 +0100
commit8034a96108ebb3125e022fabc97a2ea5f5135311 (patch)
tree010e2dc4173ee348ea6d4ce395c8d353662d1ecc /src/lib/eina/eina_log.c
parentb0d039aa02471c342523d11755dbb933f0ef5c83 (diff)
eina: remove un-necessary tests before freeing memory
free() is specified to do nothing at all when taking NULL as input.
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_log.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/eina/eina_log.c b/src/lib/eina/eina_log.c
index 9d518c9b21..3f892e6e70 100644
--- a/src/lib/eina/eina_log.c
+++ b/src/lib/eina/eina_log.c
@@ -941,11 +941,8 @@ eina_log_domain_free(Eina_Log_Domain *d)
941{ 941{
942 EINA_SAFETY_ON_NULL_RETURN(d); 942 EINA_SAFETY_ON_NULL_RETURN(d);
943 943
944 if (d->domain_str) 944 free((char *)d->domain_str);
945 free((char *)d->domain_str); 945 free((char *)d->name);
946
947 if (d->name)
948 free((char *)d->name);
949} 946}
950 947
951/* 948/*