Fixed some warnings + errors

This commit is contained in:
Martin Pulec
2018-08-16 09:56:28 +02:00
parent 4a5bc75e1e
commit 0bf7a4eda3
9 changed files with 33 additions and 36 deletions

View File

@@ -192,6 +192,7 @@ static struct response *process_message(struct capture_filter *s, struct msg_uni
if (create_filter(s, fmt) != 0) {
fprintf(stderr, "Cannot create capture filter: %s.\n",
msg->text);
free(fmt);
return new_response(RESPONSE_INT_SERV_ERR, NULL);
} else {
printf("Capture filter \"%s\" created successfully.\n",