Changeset: c367020c7b2a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c367020c7b2a
Modified Files:
clients/mapiclient/dump.c
Branch: Jan2014
Log Message:
Close a potential memory leak.
Although the chances were minimal.
diffs (20 lines):
diff --git a/clients/mapiclient/dump.c b/clients/mapiclient/dump.c
--- a/clients/mapiclient/dump.c
+++ b/clients/mapiclient/dump.c
@@ -1967,6 +1967,7 @@ dump_version(Mapi mid, stream *toConsole
if (dbname != NULL)
free(dbname);
dbname = uri;
+ uri = NULL;
}
if (dbname != NULL && dbver != NULL) {
mnstr_printf(toConsole, "%s MonetDB v%s%s%s%s, '%s'\n",
@@ -1985,6 +1986,8 @@ dump_version(Mapi mid, stream *toConsole
free(dbver);
if (dbrel != NULL)
free(dbrel);
+ if (uri != NULL)
+ free(uri);
if (hdl)
mapi_close_handle(hdl);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list