Merge branch 'bugfix-MemoryLeak_in_persist_read' of git://github.com/panava/mosquitto into panava-bugfix-MemoryLeak_in_persist_read
This commit is contained in:
commit
3220790790
@ -432,10 +432,12 @@ int persist__restore(struct mosquitto_db *db)
|
||||
case DB_CHUNK_CFG:
|
||||
if(db_version == 5){
|
||||
if(persist__chunk_cfg_read_v5(fptr, &cfg_chunk)){
|
||||
fclose(fptr);
|
||||
return 1;
|
||||
}
|
||||
}else{
|
||||
if(persist__chunk_cfg_read_v234(fptr, &cfg_chunk)){
|
||||
fclose(fptr);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user