Olivier Crête b9decbb056 shmpipe: Fix crash when sp_close_shm is called with self == NULL.
If sp_open_shm errors out trying to open a shm area, it would crash
when trying to free the area. The RETURN_ERROR macro calls
sp_shm_area_dec with self == NULL. sp_shm_area_dec calls
sp_shm_close, with self == NULL, which it then tries to access a
parameter of without checking. This patch checks to make sure
self != NULL before accessing that parameter.
2010-06-03 15:27:43 -04:00
..
2010-03-22 13:16:33 +01:00
2010-03-22 13:16:33 +01:00
2010-05-11 13:08:41 +01:00
2010-03-22 12:05:59 +01:00
2010-03-22 13:16:33 +01:00
2010-03-22 16:56:03 +01:00
2010-03-22 16:56:03 +01:00
2010-03-22 16:56:03 +01:00
2010-03-22 12:30:01 +01:00
2010-03-24 00:19:02 +00:00
2010-05-19 19:24:04 +02:00
2010-03-22 13:16:33 +01:00
2010-03-22 13:16:33 +01:00
2010-03-22 12:05:59 +01:00