Commit 4d69abd3 authored by Mat's avatar Mat
Browse files

Fix a memory leak in MapOwner

Embarrassing mistake, kindly reported and fixed by @bmccord2.
parent 73d1a0c9
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
/* 
 * This file is part of SharedArray.
 * Copyright (C) 2014-2017 Mathieu Mirmont <mat@parad0x.org>
 * Copyright (C) 2014-2020 Mathieu Mirmont <mat@parad0x.org>
 * 
 * SharedArray is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
@@ -34,6 +34,9 @@ static void do_dealloc(PyMapOwnerObject *self)

	/* Free the file name */
	free(self->name);

	/* Free the object */
	Py_TYPE(self)->tp_free((PyObject*) self);
}

/*