diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-30 12:25:04 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-30 12:25:04 +0300 |
commit | 77a7bfed02787873fba3a4b0a3c831353de3d6cb (patch) | |
tree | 23bde7d913d43009f13f5ff70cf65d655f7d706f /plugins | |
parent | 7c75179e46a77a3d5c662ea6a19644cc8d220588 (diff) | |
download | rpm-77a7bfed02787873fba3a4b0a3c831353de3d6cb.tar.gz rpm-77a7bfed02787873fba3a4b0a3c831353de3d6cb.tar.bz2 rpm-77a7bfed02787873fba3a4b0a3c831353de3d6cb.zip |
Remove trailing dead NULL-assignments from sepoltransFree()
- Replace assignments with a memset() to blast away the contents instead,
taking care of other members too
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sepolicy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/sepolicy.c b/plugins/sepolicy.c index a0a9ccc62..b0c07a299 100644 --- a/plugins/sepolicy.c +++ b/plugins/sepolicy.c @@ -349,9 +349,10 @@ static sepoltrans *sepoltransFree(sepoltrans * pt) semanage_handle_destroy(pt->sh); } - pt->semodulepath = _free(pt->semodulepath); + free(pt->semodulepath); + memset(pt, 0, sizeof(*pt)); /* trash and burn */ - pt = _free(pt); + free(pt); return NULL; } |