iscsi-scstd: Fix a memory leak in the iSNS code

Detected by Coverity.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6369 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-06-17 00:22:46 +00:00
parent dfcb53a9b2
commit b099782023
+1
View File
@@ -1048,6 +1048,7 @@ static int config_isns_load(const char *config)
if ((*p == '\0') || (*p == '#'))
continue;
if (!strcasecmp(p, ISCSI_ISNS_SERVER_ATTR_NAME)) {
free(isns_server);
isns_server = strdup(config_sep_string(&q));
} else if (!strcasecmp(p, ISCSI_ISNS_ACCESS_CONTROL_ATTR_NAME)) {
char *str = config_sep_string(&q);