* Memory leak in BongoJsonParserNextNode() - duplicated string at return.
* Memory leak in LdapToRelativeMdb() - forgot to free string.
This commit is contained in:
@@ -510,7 +510,7 @@ BongoJsonParserNextNode(BongoJsonParser *t)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return BongoJsonNodeNewStringGive(s);
|
||||
return s;
|
||||
}
|
||||
|
||||
BongoJsonResult
|
||||
|
||||
@@ -557,6 +557,7 @@ LdapToRelativeMdb(const char *LdapDn, const char *Base)
|
||||
|
||||
if (mdbDn) {
|
||||
relDn = GetRelativeDn(mdbDn, Base);
|
||||
free(mdbDn);
|
||||
}
|
||||
|
||||
return relDn;
|
||||
|
||||
Reference in New Issue
Block a user