Release binaries after creating writable copy

This commit is contained in:
Carlos Martín Nieto
2013-06-04 23:37:03 +02:00
parent 369a2e5151
commit 9f500e3fa0
3 changed files with 11 additions and 8 deletions

View File

@@ -92,6 +92,7 @@ geef_repository_discover(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[])
}
if (error < 0) {
enif_release_binary(&path);
return geef_error(env);
}