summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Gorrod <alexg@wiredtiger.com>2014-02-26 09:00:47 +1100
committerAlex Gorrod <alexg@wiredtiger.com>2014-02-26 09:00:47 +1100
commitc5b603522ec0c5b7780e4c5f20086e8b8b946f86 (patch)
treedb53dcfa002932397bb547d356245b25308f56ea /ext
parent6647871eecf5ba5df389b96e4f9fbc9cc1ccfdd0 (diff)
downloadmongo-c5b603522ec0c5b7780e4c5f20086e8b8b946f86.tar.gz
Fix compiler warnings re: ignored return values.
Diffstat (limited to 'ext')
-rw-r--r--ext/datasources/helium/helium.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/datasources/helium/helium.c b/ext/datasources/helium/helium.c
index ee08cbd97b3..24b0f595d62 100644
--- a/ext/datasources/helium/helium.c
+++ b/ext/datasources/helium/helium.c
@@ -2102,7 +2102,7 @@ helium_session_open_cursor(WT_DATA_SOURCE *wtds, WT_SESSION *session,
WT_CURSOR *wtcursor;
WT_EXTENSION_API *wtext;
WT_SOURCE *ws;
- int locked, ret = 0;
+ int locked, ret, t_ret;
const char *value;
*new_cursor = NULL;
@@ -2113,6 +2113,7 @@ helium_session_open_cursor(WT_DATA_SOURCE *wtds, WT_SESSION *session,
wtext = ds->wtext;
ws = NULL;
locked = 0;
+ ret = t_ret = 0;
value = NULL;
/* Allocate and initialize a cursor. */
@@ -2226,8 +2227,9 @@ err: if (ws != NULL && locked)
ESET(unlock(wtext, session, &ws->lock));
cursor_destroy(cursor);
}
- if (config_parser != NULL)
- config_parser->close(config_parser);
+ if (config_parser != NULL && (t_ret =
+ (void)config_parser->close(config_parser)) != 0 && ret == 0)
+ ret = t_ret;
free((void *)value);
return (ret);
}