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:
parent
da9963e66b
commit
f5197e0230
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user