1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Fixed potential free of NULL found by SGI speedshop.

Jeremy.
(This used to be commit fc7830eec8f5478fc3d3296bb35cb11c94e7d9fa)
This commit is contained in:
Jeremy Allison 2001-06-11 20:56:18 +00:00
parent da9963e66b
commit f5197e0230

View File

@ -1227,7 +1227,8 @@ int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag)
ret = -1;
}
out:
free(p);
if (p)
free(p);
tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
return ret;
}