update: Don't leak dh on error.

Found by Coverity.
This commit is contained in:
Andreas Schneider 2012-10-19 20:17:45 +02:00
parent b4464bd92f
commit 47f1560d87

View file

@ -325,6 +325,9 @@ done:
SAFE_FREE(filename);
return rc;
error:
if (dh != NULL) {
csync_vio_closedir(ctx, dh);
}
SAFE_FREE(filename);
return -1;
}