Skip to content

Commit

Permalink
8129511: PlatformMidi.c:83 uses malloc without malloc header
Browse files Browse the repository at this point in the history
Reviewed-by: ant, azvegint
  • Loading branch information
mrserb committed Jul 10, 2015
1 parent e9484d5 commit 6e6c434
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jdk/src/share/native/com/sun/media/sound/PlatformMidi.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -29,6 +29,8 @@

#include "PlatformMidi.h"

#include <stdlib.h>

char* GetInternalErrorStr(INT32 err) {
switch (err) {
case MIDI_SUCCESS: return "";
Expand Down

0 comments on commit 6e6c434

Please sign in to comment.