Commit a4ae7c48 authored by malenov's avatar malenov
Browse files

small correction of malloc() inside count.c

parent cfcf1842
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -311,7 +311,7 @@ static char *my_strdup( const char *s )

    /* allocate memory for copy of ID string (including string terminator) */
    /* NOTE: the ID strings will never be deallocated because there is no way to "destroy" a counter that is not longer needed */
    if ( ( dup = (char *) malloc_( strlen( s ) + 1 ) ) == NULL )
    if ( ( dup = (char *) malloc( strlen( s ) + 1 ) ) == NULL )
        return NULL;

    return strcpy( dup, s );