summaryrefslogtreecommitdiff
path: root/src/persistence_client_library_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/persistence_client_library_file.c')
-rw-r--r--src/persistence_client_library_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/persistence_client_library_file.c b/src/persistence_client_library_file.c
index d24257f..82e151c 100644
--- a/src/persistence_client_library_file.c
+++ b/src/persistence_client_library_file.c
@@ -494,7 +494,8 @@ int pclFileCreatePath(unsigned int ldbid, const char* resource_id, unsigned int
}
// we don't need the file handle here
// the application calling this function must use the POSIX open() function to get an file descriptor
- close(handle);
+ if(handle > 0)
+ close(handle);
}
handle = get_persistence_handle_idx();