src/server/config/serverconf.c

changeset 62
c47e081b6c0f
parent 46
636e05eb48f6
child 79
f48cea237ec3
equal deleted inserted replaced
61:c858850f3d3a 62:c47e081b6c0f
48 int r = cfg_parse_basic_file((ConfigParser*)conf, in); 48 int r = cfg_parse_basic_file((ConfigParser*)conf, in);
49 if(r != 0) { 49 if(r != 0) {
50 // TODO: free 50 // TODO: free
51 return NULL; 51 return NULL;
52 } 52 }
53
54 fclose(in);
53 55
54 return conf; 56 return conf;
55 } 57 }
56 58
57 void free_server_config(ServerConfig *conf) { 59 void free_server_config(ServerConfig *conf) {

mercurial