diff options
Diffstat (limited to 'psutil/arch/bsd/openbsd.c')
-rw-r--r-- | psutil/arch/bsd/openbsd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/psutil/arch/bsd/openbsd.c b/psutil/arch/bsd/openbsd.c index 75679cf2..4caf6ed5 100644 --- a/psutil/arch/bsd/openbsd.c +++ b/psutil/arch/bsd/openbsd.c @@ -102,6 +102,7 @@ kinfo_getfile(long pid, int* cnt) { } mib[5] = (int)(len / sizeof(struct kinfo_file)); if (sysctl(mib, 6, kf, &len, NULL, 0) < 0) { + free(kf); PyErr_SetFromErrno(PyExc_OSError); return NULL; } |