Avoid a memory leak
This commit is contained in:
parent
67a98b9120
commit
d6c681ec6a
|
@ -459,6 +459,8 @@ int camera_save(Camera * camera)
|
|||
/* FIXME also implement interpolation and overlay images */
|
||||
ret = config_save(config, filename);
|
||||
}
|
||||
if(config != NULL)
|
||||
config_delete(config);
|
||||
free(filename);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user