* Memory leak in BongoJsonParserNextNode() - duplicated string at return.

* Memory leak in LdapToRelativeMdb() - forgot to free string.
This commit is contained in:
trisk
2007-07-12 20:53:52 +00:00
parent 277769e69d
commit 8d1f10ad98
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -510,7 +510,7 @@ BongoJsonParserNextNode(BongoJsonParser *t)
return NULL;
}
return BongoJsonNodeNewStringGive(s);
return s;
}
BongoJsonResult
+1
View File
@@ -557,6 +557,7 @@ LdapToRelativeMdb(const char *LdapDn, const char *Base)
if (mdbDn) {
relDn = GetRelativeDn(mdbDn, Base);
free(mdbDn);
}
return relDn;