summaryrefslogtreecommitdiff
path: root/src/login_sql/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login_sql/login.c')
-rw-r--r--src/login_sql/login.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login_sql/login.c b/src/login_sql/login.c
index f61f650cc..338ac92b4 100644
--- a/src/login_sql/login.c
+++ b/src/login_sql/login.c
@@ -1406,9 +1406,9 @@ int parse_console(char *buf) {
printf("Type of command: %s || Command: %s \n",type,command);
- free(buf);
- free(type);
- free(command);
+ if(buf) free(buf);
+ if(type) free(type);
+ if(command) free(command);
return 0;
}