svn commit: r298382 - head/usr.sbin/sesutil
Baptiste Daroussin
bapt at FreeBSD.org
Wed Apr 20 21:37:33 UTC 2016
Author: bapt
Date: Wed Apr 20 21:37:32 2016
New Revision: 298382
URL: https://svnweb.freebsd.org/changeset/base/298382
Log:
Plug memory leak
Reported by: coverity
CID: 1331664, 1331665
Modified:
head/usr.sbin/sesutil/sesutil.c
Modified: head/usr.sbin/sesutil/sesutil.c
==============================================================================
--- head/usr.sbin/sesutil/sesutil.c Wed Apr 20 21:32:34 2016 (r298381)
+++ head/usr.sbin/sesutil/sesutil.c Wed Apr 20 21:37:32 2016 (r298382)
@@ -272,6 +272,7 @@ sesled(int argc, char **argv, bool setfa
}
}
}
+ free(objp);
close(fd);
}
globfree(&g);
@@ -424,6 +425,7 @@ objmap(int argc, char **argv __unused)
sbuf_delete(extra);
free(e_devname.elm_devnames);
}
+ free(e_ptr);
close(fd);
}
globfree(&g);
More information about the svn-src-head
mailing list