Avoid a memory leak

This commit is contained in:
Pierre Pronchery 2014-02-22 01:56:26 +01:00
parent 67a98b9120
commit d6c681ec6a

View File

@ -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;
}