Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a107c74 in mainline


Ignore:
Timestamp:
2014-02-10T14:28:33Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
5d27e5a
Parents:
dbb29de
Message:

hound: Don't leak device buffer on release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/audio_device.c

    rdbb29de ra107c74  
    4242#include <str.h>
    4343#include <str_error.h>
     44#include <sys/mman.h>
    4445
    4546
     
    380381        const int ret = audio_pcm_release_buffer(dev->sess);
    381382        if (ret == EOK) {
     383                munmap(dev->buffer.base, dev->buffer.size);
    382384                dev->buffer.base = NULL;
    383385                dev->buffer.size = 0;
Note: See TracChangeset for help on using the changeset viewer.