Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The strdup-ed pointer was actually not leaked but assigned to s->dir. There was, anyways, just one poblem, when the dir started with ':', so. `strtok(cfg_copy, ":")` would skip leading ':' returning cfg_copy+1. That would then be passed to free in export_destroy(), which would most likely crash on invalid pointer.
- Loading branch information