Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Free rawdevices after opening the connected device #7

Merged
merged 3 commits into from
Jan 2, 2016

Conversation

wking
Copy link
Contributor

@wking wking commented Aug 24, 2015

Avoid leaking the raw-device memory. For a similar example in the libmtp
source, see LIBMTP_Get_First_Device.

This PR is based on #5, but I can rebase it onto master if the
reformatting in #5 isn't wanted.

GNU-style seemed the closest match to the existing codebase, so I
used:

  $ indent --ignore-profile --gnu-style *.c *.h

With GNU indent 2.2.11.

This fixes a lot of inconsistent tab-vs.-space indenting (among other
things).

[1]: http://www.gnu.org/software/indent/
This clears up the 'git status' output after a run of:

  $ ./autogen.sh
  $ ./configure
  $ make
Avoid leaking the raw-device memory.  For a similar example in the
libmtp source, see LIBMTP_Get_First_Device [1].

[1]: http://sourceforge.net/p/libmtp/code/ci/libmtp-1-1-9/tree/src/libmtp.c#l1690
cjd added a commit that referenced this pull request Jan 2, 2016
Free rawdevices after opening the connected device
@cjd cjd merged commit 898bb38 into cjd:master Jan 2, 2016
@wking wking deleted the free-raw-devices branch January 3, 2016 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants