From 7575609c415f84320b7956279d4d2adef8a5228e Mon Sep 17 00:00:00 2001 From: solusipse Date: Sat, 2 Sep 2017 19:44:08 +0200 Subject: [PATCH] Fixed null dereference, renamed argument to match declaration --- fiche.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fiche.c b/fiche.c index e243e5b..ef03ea9 100644 --- a/fiche.c +++ b/fiche.c @@ -141,7 +141,7 @@ static int create_directory(char *output_dir, char *slug); * @arg data Buffer with data received from the user * @arg path Path at which file containing data from the buffer will be created */ -static int save_to_file(uint8_t *data, char *output_dir, char *path); +static int save_to_file(uint8_t *data, char *output_dir, char *slug); // Logging-related @@ -626,7 +626,6 @@ static void *handle_connection(void *args) { // Cleanup free(c); - free(slug); pthread_exit(NULL); return NULL; }