diff options
Diffstat (limited to 'src/plugins/relay/relay-raw.c')
-rw-r--r-- | src/plugins/relay/relay-raw.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/relay/relay-raw.c b/src/plugins/relay/relay-raw.c index b18d7b796..6453d1344 100644 --- a/src/plugins/relay/relay-raw.c +++ b/src/plugins/relay/relay-raw.c @@ -154,10 +154,8 @@ relay_raw_message_free (struct t_relay_raw_message *raw_message) (raw_message->next_message)->prev_message = raw_message->prev_message; /* free data */ - if (raw_message->prefix) - free (raw_message->prefix); - if (raw_message->message) - free (raw_message->message); + free (raw_message->prefix); + free (raw_message->message); free (raw_message); @@ -377,8 +375,7 @@ relay_raw_message_add (enum t_relay_msg_type msg_type, relay_raw_message_free (new_raw_message); } - if (buf) - free (buf); + free (buf); free (raw_data); } |